md-forge

Crates.iomd-forge
lib.rsmd-forge
version0.1.0
created_at2025-07-18 16:28:30.743373+00
updated_at2025-07-18 16:28:30.743373+00
descriptionA blazingly fast, lightweight Markdown to HTML converter built entirely in Rust
homepagehttps://github.com/Aditya-1304/md-to-html
repositoryhttps://github.com/Aditya-1304/md-to-html
max_upload_size
id1759163
size12,955
Aditya Mandal (Aditya-1304)

documentation

README

md-forge 🔥

A blazingly fast, lightweight Markdown to HTML converter built entirely in Rust. Convert your Markdown documents to clean, semantic HTML with zero dependencies.

Features

  • 🚀 Fast & Lightweight: Pure Rust implementation with no external dependencies
  • 📝 Comprehensive Markdown Support: Headers, lists, blockquotes, code blocks, and inline formatting
  • 🔗 Link Processing: Automatic conversion of Markdown links to HTML anchors
  • 💪 Bold & Italic: Support for **bold**, *italic*, and ***bold italic*** text
  • 📋 Lists: Both ordered (numbered) and unordered (bullet) lists
  • 💬 Blockquotes: Clean blockquote rendering with nested formatting support
  • 🖥️ Code Blocks: Fenced code blocks with language specification support
  • 🎯 Headers: All six levels of headers (H1-H6)

Installation

From crates.io

cargo install md-forge

From source

git clone https://github.com/yourusername/md-forge
cd md-forge
cargo build --release

Usage

Command Line

md-forge input.md output.html

Example

# Convert a README.md to HTML
md-forge README.md README.html

# Convert documentation
md-forge docs/guide.md public/guide.html

Supported Markdown Features

Headers

# H1 Header
## H2 Header
### H3 Header
#### H4 Header
##### H5 Header
###### H6 Header

Text Formatting

**Bold text**
*Italic text*
***Bold and italic text***

Lists

- Unordered list item
- Another item
- Third item

1. Ordered list item
2. Second item
3. Third item

Links

[Link text](https://example.com)
[Rust Documentation](https://doc.rust-lang.org/)

Blockquotes

> This is a blockquote
> It can span multiple lines

Code Blocks

```
Plain code block
```

```rust
// Code block with language specification
fn main() {
    println!("Hello, world!");
}
```
Commit count: 0

cargo fmt