mirror of https://github.com/vector-im/riot-web
Fix editing of <sub> & <sup> & <u>
parent
869a5fb5c7
commit
fa550a65af
|
@ -121,6 +121,12 @@ function parseElement(n: HTMLElement, partCreator: PartCreator, lastNode: HTMLEl
|
||||||
return partCreator.plain(`\`${n.textContent}\``);
|
return partCreator.plain(`\`${n.textContent}\``);
|
||||||
case "DEL":
|
case "DEL":
|
||||||
return partCreator.plain(`<del>${n.textContent}</del>`);
|
return partCreator.plain(`<del>${n.textContent}</del>`);
|
||||||
|
case "SUB":
|
||||||
|
return partCreator.plain(`<sub>${n.textContent}</sub>`);
|
||||||
|
case "SUP":
|
||||||
|
return partCreator.plain(`<sup>${n.textContent}</sup>`);
|
||||||
|
case "U":
|
||||||
|
return partCreator.plain(`<u>${n.textContent}</u>`);
|
||||||
case "LI": {
|
case "LI": {
|
||||||
const indent = " ".repeat(state.listDepth - 1);
|
const indent = " ".repeat(state.listDepth - 1);
|
||||||
if (n.parentElement.nodeName === "OL") {
|
if (n.parentElement.nodeName === "OL") {
|
||||||
|
|
Loading…
Reference in New Issue