Skip to content

Markdown to HTML Example

This example shows how Markdom converts Markdown into clean HTML with anchor links and an optional Table of Contents.

<!-- TOC-HERE -->
# Intro
Text.
<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>
  • 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.