fix pasteRules for italic mark

fixes #284
This commit is contained in:
Marius Tolzmann
2019-05-06 04:25:58 +02:00
parent 364c744cef
commit b0c28da3c1

View File

@@ -36,7 +36,8 @@ export default class Italic extends Mark {
pasteRules({ type }) { pasteRules({ type }) {
return [ return [
markPasteRule(/(?:^|[^*_])(?:\*|_)([^*_]+)(?:\*|_)/g, type), markPasteRule(/_([^_]+)_/g, type),
markPasteRule(/\*([^*]+)\*/g, type),
] ]
} }