removed Markdown support for UnderlineMark
This commit is contained in:
@@ -38,7 +38,7 @@ export default class BoldMark extends Mark {
|
|||||||
|
|
||||||
inputRules({ type }) {
|
inputRules({ type }) {
|
||||||
return [
|
return [
|
||||||
markInputRule(/\*\*([^*]+)\*\*$/, type),
|
markInputRule(/(?:\*\*|__)([^\*_]+)(?:\*\*|__)$/, type),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Mark } from 'tiptap'
|
import { Mark } from 'tiptap'
|
||||||
import { toggleMark, markInputRule } from 'tiptap-commands'
|
import { toggleMark } from 'tiptap-commands'
|
||||||
|
|
||||||
export default class UnderlineMark extends Mark {
|
export default class UnderlineMark extends Mark {
|
||||||
|
|
||||||
@@ -32,10 +32,4 @@ export default class UnderlineMark extends Mark {
|
|||||||
return toggleMark(type)
|
return toggleMark(type)
|
||||||
}
|
}
|
||||||
|
|
||||||
inputRules({ type }) {
|
|
||||||
return [
|
|
||||||
markInputRule(/__([^_]+)__$/, type),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user