mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Koenig - Fixed dash text expansions
refs https://github.com/TryGhost/Ghost/issues/9623
- ea2a6a09dc
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
65e21cb1e0
commit
9e3c5876ee
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue