CLI that converts a Markdown file to HTML and writes the result to stdout.
- Headings: # ... ######
- Horizontal rules: --- *** ___
- Blockquotes: > quote
- Unordered lists: * / - / + item
- Ordered lists: 1. item
- Bold: text or text
- Strikethrough:
text - Inline code:
code - Images:
- Raw HTML passthrough lines (not wrapped)
- Basic paragraph wrapping (non-empty, non-processed lines)
Local (development):
git clone <repo>
cd markdown-processor
npm install
npm run buildGlobal (exposes marcus):
npm install -g .marcus <file.md>Example:
marcus README.md > README.htmlProgrammatic (stdout piping):
marcus test.md | grep "<h2>"Watch mode (needs tsx if desired—currently not listed as dep):
npm run devBuild:
npm run buildRun built artifact:
npm start README.md- 0 success
- 1 file read error
The parser is order-dependent, does not fully validate Markdown, and may mis-handle edge cases (mixed lists, nested structures, inline formatting inside list items). Treat output as experimental.
Issues & PRs welcome. Keep additions small and tested.
MIT (recommended)