mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-10 15:02:05 +02:00
Fix editing <ol> tags with a non-1 start attribute (#8211)
This commit is contained in:
parent
17cfd45eb3
commit
04e79dffae
@ -218,7 +218,7 @@ function parseNode(n: Node, pc: PartCreator, mkListItem?: (li: Node) => Part[]):
|
|||||||
return parts;
|
return parts;
|
||||||
}
|
}
|
||||||
case "OL": {
|
case "OL": {
|
||||||
let counter = 1;
|
let counter = (n as HTMLOListElement).start ?? 1;
|
||||||
const parts = parseChildren(n, pc, li => {
|
const parts = parseChildren(n, pc, li => {
|
||||||
const parts = [pc.plain(`${counter}. `), ...parseChildren(li, pc)];
|
const parts = [pc.plain(`${counter}. `), ...parseChildren(li, pc)];
|
||||||
counter++;
|
counter++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user