MarkdownToHTML
Text, Markdown, HTML text
Description
Converts Markdown into the HTML subset accepted by the built-in layout and drawing methods
Syntax
Delphi
Function TPDFlib.MarkdownToHTML(Const Markdown: WideString): WideString;ActiveX
Function PDFlib::MarkdownToHTML(Markdown As String) As StringDLL
const wchar_t * DLMarkdownToHTML(int InstanceID, const wchar_t * Markdown);Parameters
| Markdown | Source text using the supported Markdown syntax |
|---|
Return values
Returns HTML containing headings, paragraphs, lists, quotations, tables, code, links, images, and inline emphasis
Remarks
Raw angle brackets are escaped as text, so source content does not inject arbitrary HTML
Use SetHTMLImage to bind image destinations before drawing the converted result
The DLL DLMarkdownToHTMLA variant accepts and returns text according to the configured ANSI mode
Code spans and fenced or indented code blocks escape ampersands and angle brackets, preserving literal entity spellings such as < when rendered