Markdown to HTML Example
This example shows how Markdom converts Markdown into clean HTML with anchor links and an optional Table of Contents.
Markdown Input
Section titled “Markdown Input”<!-- TOC-HERE -->
# Intro
Text.
HTML Output
Section titled “HTML Output”<nav class="markdown-toc"> <ul> <li><a href="#intro">Intro</a></li> </ul></nav>
<h1 id="intro"><a href="#intro">🔗</a> Intro</h1><p>Text.</p>
Key Features Illustrated
Section titled “Key Features Illustrated”- TOC Insertion: Automatically generates a Table of Contents from headings.
- Heading Anchors: Adds
id
attributes and anchor links to headings. - Clean Output: Outputs semantic HTML for paragraphs and other elements.