mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 21:19:06 +08:00
removed Markdown support for UnderlineMark
This commit is contained in:
parent
2489997e91
commit
2b17cabf8f
@ -38,7 +38,7 @@ export default class BoldMark extends Mark {
|
||||
|
||||
inputRules({ type }) {
|
||||
return [
|
||||
markInputRule(/\*\*([^*]+)\*\*$/, type),
|
||||
markInputRule(/(?:\*\*|__)([^\*_]+)(?:\*\*|__)$/, type),
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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),
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user