From b0001f181e77c0a4e316e5d6aa6e6063a2408bcc Mon Sep 17 00:00:00 2001 From: Zerebos Date: Wed, 22 Mar 2023 15:00:48 -0400 Subject: [PATCH] Hotfix markdown parser (#1575) --- renderer/src/structs/markdown.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renderer/src/structs/markdown.js b/renderer/src/structs/markdown.js index 1217a548..fc6464ba 100644 --- a/renderer/src/structs/markdown.js +++ b/renderer/src/structs/markdown.js @@ -17,6 +17,11 @@ export default class SimpleMarkdownExt { return original; }}}); + for (const type in newRules) { + if (!newRules[type].requiredFirstCharacters) continue; + newRules[type].requiredFirstCharacters = Object.values(newRules[type].requiredFirstCharacters); + } + this._parse = SMD.parserFor(newRules); this._renderer = SMD.reactFor(SMD.ruleOutput(newRules, "react")); }