From 489e9a571718808ce3301ec7dd0bb888471269a5 Mon Sep 17 00:00:00 2001 From: Felix Wu Date: Wed, 1 Aug 2018 20:14:36 +0200 Subject: [PATCH] feat$(abcjs): add extension preset --- src/data/presets.js | 104 ++++++++++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 42 deletions(-) diff --git a/src/data/presets.js b/src/data/presets.js index f0301654..75ad50ec 100644 --- a/src/data/presets.js +++ b/src/data/presets.js @@ -23,6 +23,14 @@ const zero = { 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 @@ -45,49 +53,61 @@ const zero = { export default { zero: [zero], - commonmark: [zero, { - markdown: { - fence: true, + commonmark: [ + zero, + { + markdown: { + fence: true, + }, }, - }], - gfm: [zero, { - markdown: { - breaks: true, - del: true, - fence: true, - linkify: true, - table: true, - tasklist: true, + ], + gfm: [ + zero, + { + markdown: { + breaks: true, + del: true, + fence: true, + linkify: true, + table: true, + tasklist: true, + }, + emoji: { + enabled: 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, + }, }, - }], - 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, - }, - }], + ], };