Koenig - Fixed dash text expansions
refs https://github.com/TryGhost/Ghost/issues/9623
- 3978894856
broke dash expansions because the list toggle was matching the `- ` before the dash text expansion could be triggered
- resolved by adding the missing beginning-of-string `^`
This commit is contained in:
parent
a9c8db27f8
commit
03e21f3f04
|
@ -88,7 +88,7 @@ export default function (editor, koenig) {
|
|||
editor.unregisterTextInputHandler('ul');
|
||||
editor.onTextInput({
|
||||
name: 'md_ul',
|
||||
match: /^\* |- /,
|
||||
match: /^\* |^- /,
|
||||
run(editor, matches) {
|
||||
replaceWithListSection(editor, matches, 'ul');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue