CartaNova
CartaNova icon

Markdown to HTML, done right

A lightweight, dependency‑free Markdown to HTML converter with safe, semantic output.

The demo opens in a new tab.

Features

Headings & paragraphs

Supports # to ######, paragraphs, and line breaks.

Emphasis styles

Bold, italic, underline, strikethrough, highlight, superscript and subscript.

Lists & blockquotes

Ordered, unordered, task lists, blockquotes, and definition lists.

Code & tables

Inline and fenced code blocks, horizontal rules, and tables with alignment.

Links & images

Standard Markdown links and images with safe, sanitized output.

Safe by default

Raw HTML is escaped; output is namespaced for easy theming.

API at a glance

MarkdownLite.parse(markdownText: string): string
MarkdownLite.renderTo(markdownText: string, element: HTMLElement)

See repository README for usage and CSS namespace details.