# Slack Markdown Converter
A standalone Rust library for converting standard Markdown to Slack mrkdwn format.
## Features
- Converts headers to bold text.
- Converts bold (**), italic (*), and strikethrough (~~) to Slack equivalents.
- Converts Markdown links to Slack format.
- Handles Markdown tables by rendering them as aligned code blocks or bulleted text.
- Preserves fenced code blocks.
- Cleans up extra whitespace.
## Usage
Add this to your `Cargo.toml`:
```toml
[dependencies]
slack-markdown-converter = 0.1
```
### Example
```rust
use slack_markdown_converter::{SlackMarkdownConverter, TableRenderMode};
fn main() {
let converter = SlackMarkdownConverter::new()
.with_table_mode(TableRenderMode::CodeBlock);
let input = "# Welcome\nThis is **bold** and [a link](https://example.com)";
let output = converter.convert(input);
println!("{}", output);
// Output:
// *Welcome*
// This is *bold* and <https://example.com|a link>
}
```
## License
MIT