drawdown

October 28, 2020 ยท View on GitHub


Tiny but reliable Markdown to HTML conversion in JavaScript

Supported Markdown features:

Headings

Inline styles such as bold, italic, both, strikethrough, monospace, --subscript--, and ^^superscript^^.

Block quotes, including

nested block quotes.

Fenced code blocks
Indented code blocks
  1. Numbered lists
  • Unordered lists
  • Nested in other lists a. Lettered lists are an extension to the spec. b. They may be useful for legal documents.
  1. Another entry in my numbered list.
TablesTablesTables
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6
Cell 7Cell 8Cell 9

Links

Images:

Images


Summary...

These are the supported features:

  • Block quotes
  • Code blocks
  • Links
  • Images
  • Headings
  • Lists (including lettered lists)
  • Bold
  • Italic
  • Strikethrough
  • Monospace
  • Subscript
  • Horizontal rule
  • Tables

Unsupported Markdown features at this time:

  • Line blocks
  • Definition lists
  • Footnotes
  • Twitter/Facebook/YouTube embed
  • Inline math equations

To use:

element.innerHTML = markdown(text);