Skip to content

Markdown

Render a small safe subset of Markdown into semantic HTML.

View template

Preview

Dispatch brief

Lighting led shipments. Prepare the next batch for Wednesday.

  • Check SL-204 stock.
  • Reserve two packing stations.

The optional insight-markdown.mjs server helper supports paragraphs, headings, unordered lists, strong, emphasis, inline code and fenced code. Raw markup is escaped.

Use in your app

Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.

Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-insights.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-insights.js"></script>

Point the HTMX attributes at your own HTML endpoints. Use the live preview’s HTTP exchange to inspect the request and response.

Optional server helper · insight-markdown.mjs ↓

Download library and examples ↓