diff --git a/src/data/defaultFileProperties.yml b/src/data/defaultFileProperties.yml index a61ff2f5..6b2abe7e 100644 --- a/src/data/defaultFileProperties.yml +++ b/src/data/defaultFileProperties.yml @@ -12,12 +12,14 @@ #date: YYYY-MM-DD HH:MM:SS ## Extensions configuration -## Preset can be `default`, `commonmark` or `zero` -## Use preset `zero` to enable extensions manually. +## Preset can be `default`, `commonmark`, `gfm` or `zero`. +## Use preset `zero` to manually switch on extensions. + extensions: preset: default - ## Markdown extensions + ## Markdown extension + #markdown: #abbr: true #breaks: true @@ -32,12 +34,12 @@ extensions: #typographer: true ## Emoji extension + #emoji: - ## Support for emojis & emoticons #enabled: true - ## Shortcuts like :) :-( - ## Disabled in the default preset. + ## Enable shortcuts like :) :-( + ## These are disabled by default. #shortcuts: false ## Katex extension @@ -45,13 +47,14 @@ extensions: ## $...$ for inline formulas ## $$...$$ for displayed formulas. ## See https://math.meta.stackexchange.com/questions/5020 + #katex: #enabled: true ## Mermaid extension - ## Convert code blocks starting with: - ## ```mermaid + ## Convert code blocks starting with ```mermaid ## into diagrams and flowcharts. ## See https://mermaidjs.github.io/ + #mermaid: #enabled: true diff --git a/src/data/presets.js b/src/data/presets.js index 14575017..b1ad84fc 100644 --- a/src/data/presets.js +++ b/src/data/presets.js @@ -31,6 +31,18 @@ export default { fence: true, }, }], + gfm: [zero, { + markdown: { + breaks: true, + del: true, + fence: true, + linkify: true, + table: true, + }, + emoji: { + enabled: true, + }, + }], default: [zero, { markdown: { abbr: true,