Interface: MarkdownExitOptions
Defined in: core.ts:35
Extends
Properties
breaks?
optional breaks: boolean;Defined in: renderer.ts:26
Set true to convert \n in paragraphs into <br>.
Default
falseInherited from
highlight?
optional highlight:
| (str, lang, attrs, env) => string | Promise<string>
| null;Defined in: renderer.ts:42
Highlighter function for fenced code blocks. Highlighter function (str, lang, attrs) should return escaped HTML. It can also return empty string if the source was not changed and should be escaped externally. If result starts with <pre... internal wrapper is skipped.
Default
nullInherited from
html?
optional html: boolean;Defined in: core.ts:42
Set true to enable HTML tags in source. Be careful! That's not safe! You may need external sanitizer to protect output from XSS. It's better to extend features via plugins, instead of enabling HTML.
Default
falselangPrefix?
optional langPrefix: string;Defined in: renderer.ts:33
CSS language class prefix for fenced blocks. Can be useful for external highlighters.
Default
'language-'Inherited from
linkify?
optional linkify: boolean;Defined in: core.ts:48
Set true to autoconvert URL-like text to links.
Default
falsemaxNesting?
optional maxNesting: number;Defined in: core.ts:69
Internal protection, recursion limit
quotes?
optional quotes: string | string[];Defined in: core.ts:64
Double + single quotes replacement pairs, when typographer enabled and smartquotes on. For example, you can use '«»„“' for Russian, '„“‚‘' for German, and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
Default
'“”‘’'typographer?
optional typographer: boolean;Defined in: core.ts:55
Set true to enable some language-neutral replacement + quotes beautification (smartquotes).
Default
falsexhtmlOut?
optional xhtmlOut: boolean;Defined in: renderer.ts:20
Set true to add '/' when closing single tags (<br />). This is needed only for full CommonMark compatibility. In real world you will need HTML output.
Default
false