A technical brief prepared by Pax for use in the MDrip mobile markdown viewer project.
Markdown (.md
) files are lightweight text documents formatted with symbols like #
, *
, and []()
to indicate headers, bold, lists, links, etc.
To display these nicely on-screen in your app, you need to convert the Markdown into HTML. This is called rendering.
marked
Perfect for MDrip MVP, which is a lightweight markdown reader app.
import { marked } from 'marked';
const raw = '# Hello\n**Bold text**';
const html = marked(raw);
mdsvex
Useful later if MDrip evolves into an interactive reader, tutorial app, or internal doc system.
We are proceeding with:
npm install marked
It gives us:
Tool | Notes |
---|---|
remark |
Plugin-based, powerful pipeline (heavier) |
showdown |
Easy to use, similar to marked |
markdown-it |
Fast and flexible, slightly bulkier |
Report generated by Pax โ QA & Docs Specialist ๐ ๏ธ๐ต๏ธ