Javascript Markdown Engine

Input
Result

Syntax

  • Inline Text Transformations
  • These tags can be placed around text to apply their rule to all content inside the tag.
  • Placing just a single tag will apply the rule up to the end of the line.
    • Bold: #
    • Italic: *
    • Underline: _

  • Structural Elements
    • Lists: a dash (-) at the beginning of the line indicates a list. To nest lists at further depths, add 2, 4, 6, etc. spaces before the dash.
      • -Item 1
      • -Item 2
      •   -Item 2a
      •   -Item 2b
      •     -Item 2ai
      •     -Item 2aii
      • -Item 3
  • Inline Elements
  • These elements can be mixed with plain text on a single line.

  • Formatting
    • Horizontal Rule: == (must be the only text on the line)

  • Line Elements
  • These elements take up one entire line.
    • Block Quote: > (Following text will be inside a block quote)
    • Headers:
      • ! Header 1
      • !! Header 2
      • !!! Header 3
      • !!!! Header 4
      • !!!!! Header 5
      • !!!!!! Header 6

Escape symbols by preceding with \
For example: *This* is italic but \*this\* is not = This is italic but *this* is not