Skip to content

Commit 0fba863

Browse files
authored
Merge pull request #1436 from BrianHung/exclude-superscript-subscript
Exclude superscript from subscript, and vice versa.
2 parents 6b5c44c + ec11554 commit 0fba863

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/extension-subscript/src/subscript.ts

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const Subscript = Mark.create<SubscriptExtensionOptions>({
3030
HTMLAttributes: {},
3131
},
3232

33+
excludes: 'superscript',
34+
3335
parseHTML() {
3436
return [
3537
{

packages/extension-superscript/src/superscript.ts

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const Superscript = Mark.create<SuperscriptExtensionOptions>({
3030
HTMLAttributes: {},
3131
},
3232

33+
excludes: 'subscript',
34+
3335
parseHTML() {
3436
return [
3537
{

0 commit comments

Comments
 (0)