Koenig - Fix divider card text expansion

no issue
- re-org of the text-expansions code meant that the smart hyphens expansion was being picked up before the divider card expansion and blocking it
This commit is contained in:
Kevin Ansfield 2018-08-08 15:52:13 +01:00
parent fe13a46273
commit 82dbf972a9

View File

@ -377,9 +377,6 @@ function registerInlineMarkdownTextExpansions(editor) {
}
export default function (editor, koenig) {
/* inline markdown -------------------------------------------------------*/
registerInlineMarkdownTextExpansions(editor);
/* block level markdown ------------------------------------------------- */
editor.unregisterTextInputHandler('heading');
@ -491,6 +488,12 @@ export default function (editor, koenig) {
koenig.send('replaceWithCardSection', 'code', section.toRange());
}
});
/* inline markdown -------------------------------------------------------*/
// must come after block expansions so that the smart hyphens expansion
// doesn't break the divider card expansion
registerInlineMarkdownTextExpansions(editor);
}
// TODO: reduce duplication