From fa550a65af11f5b0e9422b2ca8b0f51cab6b0736 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 23 Jul 2021 19:01:12 +0100 Subject: [PATCH] Fix editing of & & --- src/editor/deserialize.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/editor/deserialize.ts b/src/editor/deserialize.ts index eb8adfda9d4..9033f99b6c8 100644 --- a/src/editor/deserialize.ts +++ b/src/editor/deserialize.ts @@ -121,6 +121,12 @@ function parseElement(n: HTMLElement, partCreator: PartCreator, lastNode: HTMLEl return partCreator.plain(`\`${n.textContent}\``); case "DEL": return partCreator.plain(`${n.textContent}`); + case "SUB": + return partCreator.plain(`${n.textContent}`); + case "SUP": + return partCreator.plain(`${n.textContent}`); + case "U": + return partCreator.plain(`${n.textContent}`); case "LI": { const indent = " ".repeat(state.listDepth - 1); if (n.parentElement.nodeName === "OL") {