mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-19 06:43:02 +08:00
parent
364c744cef
commit
b0c28da3c1
@ -36,7 +36,8 @@ export default class Italic extends Mark {
|
||||
|
||||
pasteRules({ type }) {
|
||||
return [
|
||||
markPasteRule(/(?:^|[^*_])(?:\*|_)([^*_]+)(?:\*|_)/g, type),
|
||||
markPasteRule(/_([^_]+)_/g, type),
|
||||
markPasteRule(/\*([^*]+)\*/g, type),
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user