mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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:
parent
fe13a46273
commit
82dbf972a9
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue