Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
104 lines (103 sloc)
1.76 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const zero = { | |
| // Markdown extensions | |
| markdown: { | |
| abbr: false, | |
| breaks: false, | |
| deflist: false, | |
| del: false, | |
| fence: false, | |
| footnote: false, | |
| imgsize: false, | |
| linkify: false, | |
| mark: false, | |
| sub: false, | |
| sup: false, | |
| table: false, | |
| tasklist: false, | |
| typographer: false, | |
| }, | |
| // Emoji extension | |
| emoji: { | |
| enabled: false, | |
| // Enable shortcuts like :) :-( | |
| shortcuts: false, | |
| }, | |
| /* | |
| ABC Notation extension | |
| Render abc-notation code blocks to music sheets | |
| See https://abcjs.net/ | |
| */ | |
| abc: { | |
| enabled: false, | |
| }, | |
| /* | |
| Katex extension | |
| Render LaTeX mathematical expressions using: | |
| $...$ for inline formulas | |
| $$...$$ for displayed formulas. | |
| See https://math.meta.stackexchange.com/questions/5020 | |
| */ | |
| katex: { | |
| enabled: false, | |
| }, | |
| /* | |
| Mermaid extension | |
| Convert code blocks starting with ```mermaid | |
| into diagrams and flowcharts. | |
| See https://mermaidjs.github.io/ | |
| */ | |
| mermaid: { | |
| enabled: false, | |
| }, | |
| }; | |
| export default { | |
| zero: [zero], | |
| commonmark: [zero, { | |
| markdown: { | |
| fence: true, | |
| }, | |
| }], | |
| gfm: [zero, { | |
| markdown: { | |
| breaks: true, | |
| del: true, | |
| fence: true, | |
| linkify: true, | |
| table: true, | |
| tasklist: true, | |
| }, | |
| emoji: { | |
| enabled: true, | |
| }, | |
| }], | |
| default: [zero, { | |
| markdown: { | |
| abbr: true, | |
| breaks: true, | |
| deflist: true, | |
| del: true, | |
| fence: true, | |
| footnote: true, | |
| imgsize: true, | |
| linkify: true, | |
| mark: true, | |
| sub: true, | |
| sup: true, | |
| table: true, | |
| tasklist: true, | |
| typographer: true, | |
| }, | |
| emoji: { | |
| enabled: true, | |
| }, | |
| katex: { | |
| enabled: true, | |
| }, | |
| mermaid: { | |
| enabled: true, | |
| }, | |
| abc: { | |
| enabled: true, | |
| }, | |
| }], | |
| }; |