mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
fix em input rule
This commit is contained in:
parent
e27735bba8
commit
25fafd1564
@ -30,7 +30,7 @@ export default class ItalicMark extends Mark {
|
||||
|
||||
inputRules({ type }) {
|
||||
return [
|
||||
markInputRule(/(?:^|[^\*_])(?:\*|_)([^\*_]+)(?:\*|_)$/, type),
|
||||
markInputRule(/(?:\*|_)([^\*_]+)(?:\*|_)$/, type),
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user