mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-01 09:29:02 +08:00
Exclude superscript from subscript, and vice versa.
This commit is contained in:
parent
3f57a13d19
commit
ec11554c09
@ -30,6 +30,8 @@ export const Subscript = Mark.create<SubscriptExtensionOptions>({
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
excludes: 'superscript',
|
||||
|
||||
parseHTML() {
|
||||
return [
|
||||
{
|
||||
|
@ -30,6 +30,8 @@ export const Superscript = Mark.create<SuperscriptExtensionOptions>({
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
excludes: 'subscript',
|
||||
|
||||
parseHTML() {
|
||||
return [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user