Exclude superscript from subscript, and vice versa.

This commit is contained in:
Brian Hung 2021-06-08 18:47:04 -07:00
parent 3f57a13d19
commit ec11554c09
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@ export const Subscript = Mark.create<SubscriptExtensionOptions>({
HTMLAttributes: {},
},
excludes: 'superscript',
parseHTML() {
return [
{

View File

@ -30,6 +30,8 @@ export const Superscript = Mark.create<SuperscriptExtensionOptions>({
HTMLAttributes: {},
},
excludes: 'subscript',
parseHTML() {
return [
{