MarkdownHtml.h header

#include <ew/app/MarkdownHtml.h>

Namespace ew::app

Functions

QString ew::app::markdownToHtml(const QString &markdown)

Renders a Markdown document to an HTML fragment (no <html>/<body> wrapper), covering the subset Easy Writer produces and exports: ATX headings (#..######), paragraphs, unordered lists (-/* items), blockquotes (>), horizontal rules (a line of three or more -, *, or _), and inline **bold**, *italic*, `code` , ![alt](src) images, and [text](url) links. Images emit a self-closing <img/> so the output is valid both as HTML5 and as the XHTML an EPUB requires. All text is HTML-escaped and unrecognised syntax is emitted as escaped text, so the output is safe and clean for themeable export (the website generator, EPUB, HTML export) without pulling in a GUI text engine.