Markdown is a lightweight markup language designed to be readable as plain text and renderable as HTML. It's the standard for README files, blog posts, documentation, and any situation where you want formatted content without writing raw HTML.
Markdown uses plain punctuation to indicate formatting. The most common elements:
This previewer supports all the standard Markdown elements โ headings, bold, italic, inline code, links, images, ordered and unordered lists, blockquotes, horizontal rules, fenced code blocks, and pipe-delimited tables.
The text is processed line by line. The parser first checks for block-level elements (headings, lists, blockquotes, code fences, tables, horizontal rules). Anything that doesn't match a block pattern is treated as a paragraph. Then, inline formatting (bold, italic, code, links, images) is applied to the content of those blocks.
The parser is intentionally conservative. It doesn't support every feature of every Markdown dialect โ no footnotes, no HTML inline, no MathJax. But it handles everything in the original Markdown spec plus the widely-used GFM tables extension.
Pipe-delimited tables are the trickiest part of Markdown. The format requires a header row, then a separator row of dashes, then optional data rows:
Column alignment can be set with colons in the separator row โ
:--- for left, :---: for center,
---: for right. The previewer respects these.
.md file for GitHub, GitLab, or any
Markdown-supporting platform.