removed Markdown support for UnderlineMark

This commit is contained in:
Chrissi2812 2018-09-11 10:18:31 +02:00
parent 2489997e91
commit 2b17cabf8f
No known key found for this signature in database
GPG Key ID: B4B82C7E618271DA
2 changed files with 2 additions and 8 deletions

View File

@ -38,7 +38,7 @@ export default class BoldMark extends Mark {
inputRules({ type }) {
return [
markInputRule(/\*\*([^*]+)\*\*$/, type),
markInputRule(/(?:\*\*|__)([^\*_]+)(?:\*\*|__)$/, type),
]
}

View File

@ -1,5 +1,5 @@
import { Mark } from 'tiptap'
import { toggleMark, markInputRule } from 'tiptap-commands'
import { toggleMark } from 'tiptap-commands'
export default class UnderlineMark extends Mark {
@ -32,10 +32,4 @@ export default class UnderlineMark extends Mark {
return toggleMark(type)
}
inputRules({ type }) {
return [
markInputRule(/__([^_]+)__$/, type),
]
}
}