Stackedit/src/data/presets.js

76 lines
1.1 KiB
JavaScript
Raw Normal View History

2018-04-05 18:38:17 +00:00
const zero = {
markdown: {
abbr: false,
breaks: false,
deflist: false,
del: false,
fence: false,
footnote: false,
linkify: false,
2018-04-06 06:55:55 +00:00
mark: false,
2018-04-05 18:38:17 +00:00
sub: false,
sup: false,
table: false,
2018-04-06 06:55:55 +00:00
tasklist: false,
2018-04-05 18:38:17 +00:00
typographer: false,
},
emoji: {
enabled: false,
shortcuts: false,
},
katex: {
enabled: false,
},
mermaid: {
enabled: false,
},
};
export default {
zero: [zero],
commonmark: [zero, {
markdown: {
fence: true,
},
}],
2018-04-05 22:55:13 +00:00
gfm: [zero, {
markdown: {
breaks: true,
del: true,
fence: true,
linkify: true,
table: true,
2018-04-06 06:55:55 +00:00
tasklist: true,
2018-04-05 22:55:13 +00:00
},
emoji: {
enabled: true,
},
}],
2018-04-05 18:38:17 +00:00
default: [zero, {
markdown: {
abbr: true,
breaks: true,
deflist: true,
del: true,
fence: true,
footnote: true,
linkify: true,
2018-04-06 06:55:55 +00:00
mark: true,
2018-04-05 18:38:17 +00:00
sub: true,
sup: true,
table: true,
2018-04-06 06:55:55 +00:00
tasklist: true,
2018-04-05 18:38:17 +00:00
typographer: true,
},
emoji: {
enabled: true,
},
katex: {
enabled: true,
},
mermaid: {
enabled: true,
},
}],
};