DrawMarkdownText
Text, Markdown, Page layout
Description
Converts and draws Markdown at the requested position through the existing cached HTML layout engine
Syntax
Delphi
Function TPDFlib.DrawMarkdownText(Left, Top, Width: Double; Const Markdown: WideString): Integer;ActiveX
Function PDFlib::DrawMarkdownText(Left As Double, Top As Double, Width As Double, Markdown As String) As LongDLL
int DLDrawMarkdownText(int InstanceID, double Left, double Top, double Width, const wchar_t* Markdown);
int DLDrawMarkdownTextA(int InstanceID, double Left, double Top, double Width, const char* Markdown);Parameters
| Left | Horizontal position of the layout box |
|---|---|
| Top | Vertical position of the layout box |
| Width | Available layout width |
| Markdown | Markdown source or a continuation token returned by DrawMarkdownTextBox |
Return values
Returns 1 when the width is valid, or 0 otherwise
Remarks
A repeated source reuses its converted HTML and measured layout plan
The DLL DLDrawMarkdownTextA variant accepts text according to the configured ANSI mode
Code spans and fenced code blocks render in monospace Courier (with fenced blocks enclosed in a bordered, shaded container) and retain literal ampersands, angle brackets, and entity spellings in the rendered PDF
Reference-style links ([text][label], [text][] and [label]) resolve against [label]: url definitions anywhere in the text, with labels matched regardless of case. Footnote references ([^note]) become superscript numbers in order of first use, and the notes, defined as [^note]: text and continued on indented lines, are listed after a rule at the end. Definitions inside fenced code are left as code