Create new instance.
No longer valid with CMark implementation.
No longer valid with CMark implementation.
No longer valid with CMark implementation.
No longer valid with CMark implementation.
No longer valid with CMark implementation
No longer valid with CMark implementation.
Enables expansion of certain partial URLs. Defaults: true
Support ~~strikethrough~~
markup. Defaults: true
Parse Markdown tables. Defaults: true
Disallows certain HTML tags. Defaults: false
Support [ ]
task lists. Default: true
Support Markdown Footnotes. Default: true
Render softbreak
elements as hard line breaks. Default: false
Suppress raw HTML and unsafe links. Default: true
Convert straight quotes to curly, --- to em dashes, -- to en dashes. Default: true
Include a data-sourcepos
attribute on all block elements. Default: false
Render "dangerous" HTML and unsafe links. Default: false
Validate UTF-8 before parsing, replacing illegal sequences. Default: false
Static
createcreate a new object.
Generated using TypeDoc
Parse Markdown to HTML using cmark-gfm, GitHub's implementation of Markdown with extensions for tables, strikethrough, etc. For details on the meaning of the various options, refer to GitHub's Markdown documentation.
Example