Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 405fe43

Browse files
authored
Merge pull request #6469 from matrix-org/t3chguy/fix/18211
Fix editing of <sub> & <sup> & <u>
2 parents dbe24fa + fa550a6 commit 405fe43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/editor/deserialize.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ function parseElement(n: HTMLElement, partCreator: PartCreator, lastNode: HTMLEl
121121
return partCreator.plain(`\`${n.textContent}\``);
122122
case "DEL":
123123
return partCreator.plain(`<del>${n.textContent}</del>`);
124+
case "SUB":
125+
return partCreator.plain(`<sub>${n.textContent}</sub>`);
126+
case "SUP":
127+
return partCreator.plain(`<sup>${n.textContent}</sup>`);
128+
case "U":
129+
return partCreator.plain(`<u>${n.textContent}</u>`);
124130
case "LI": {
125131
const indent = " ".repeat(state.listDepth - 1);
126132
if (n.parentElement.nodeName === "OL") {

0 commit comments

Comments
 (0)