marked#MarkedOptions TypeScript Examples
The following examples show how to use
marked#MarkedOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: markdown.ts From grafana-chinese with Apache License 2.0 | 6 votes |
defaultMarkedOptions: MarkedOptions = {
renderer: new marked.Renderer(),
pedantic: false,
gfm: true,
tables: true,
sanitize: true,
smartLists: true,
smartypants: false,
xhtml: false,
}
Example #2
Source File: markdown.ts From grafana-chinese with Apache License 2.0 | 5 votes |
export function setMarkdownOptions(optionsOverride?: MarkedOptions) {
marked.setOptions({ ...defaultMarkedOptions, ...optionsOverride });
}