A tiny Markdown-to-HTML tool written in C.
- Develop a lightweight md to html tool for my personal website
- Learn software engineering practices, including how to write coherent, maintainable and testable code
- Achieve zero memory leaks under ASan
md2html <input_file> [options]| Option | Necessary | Value | Description |
|---|---|---|---|
-o <file> |
Yes | path/to/output |
Set output path |
-h |
No | None | Print usage |
Convert markdown file to HTML file:
md2html input.md -o output.html- Basic lexer-parser structure
- Basic test cases
- Refactor the Makefile
- Support source file compilation in recursive folders
- Support debug/release configuration