A fast and lightweight markdown to HTML parser written in Zig.
SSziG is a lightweight, fast static site generator written in Zig that converts Markdown files to HTML. SSziG can process individual files or entire directory structures, making it perfect for building static websites, documentation sites, or blogs.
- Zig compiler (version 0.11.0 or later recommended)
git clone https://github.com/Samarthbhat52/SSziG.git
cd SSziG
zig build
The compiled binary will be available in the zig-out/bin/
directory.
# Display help
sszig --help
sszig -h
# Display version
sszig --version
sszig -v
# Process a single Markdown file
sszig --file input.md
sszig -f input.md
# Process an entire directory
sszig --dir content/
sszig -d content/
When processing a single file, SSziG creates an output/
directory in the current working directory:
sszig -f my-document.md
Input: my-document.md
Output: output/my-document.html
When processing a directory, SSziG recursively processes all .md
files and maintains the directory structure:
sszig -d content/
Example structure:
content/
├── index.md
├── about.md
└── blog/
├── post1.md
└── post2.md
Output:
public/
├── index.html
├── about.html
└── blog/
├── post1.html
└── post2.html
The following features are not supported:
- Raw HTML blocks
- superscript
- Nested code blocks
- Escape sequences
- Some other delimiters that I may not have encountered yet
- Only
.md
files are processed - Files without extensions are skipped
- Non-markdown files are ignored with a skip message
At this time, I'm not accepting contributions. However, feel free to fork or clone the repository and experiment on your own!
This project is licensed under the MIT License. See the LICENSE file for details.