Hotfix markdown parser (#1575)

This commit is contained in:
Zerebos 2023-03-22 15:00:48 -04:00 committed by GitHub
parent acd994e60f
commit b0001f181e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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"));
}