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
Create new instance.
Takes Markdown string passed and processes it with GitHub Markdown parser based on the property selections on the object.
Staticcreatecreate a new object.
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