Constnium/node_modules/marked/src/defaults.js
2022-06-23 02:00:30 +02:00

29 lines
558 B
JavaScript

export function getDefaults() {
return {
baseUrl: null,
breaks: false,
extensions: null,
gfm: true,
headerIds: true,
headerPrefix: '',
highlight: null,
langPrefix: 'language-',
mangle: true,
pedantic: false,
renderer: null,
sanitize: false,
sanitizer: null,
silent: false,
smartLists: false,
smartypants: false,
tokenizer: null,
walkTokens: null,
xhtml: false
};
}
export let defaults = getDefaults();
export function changeDefaults(newDefaults) {
defaults = newDefaults;
}