mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 12:22:50 +02:00
Coverage for m->d ordered list start attribute
This commit is contained in:
parent
53a009ca45
commit
8026cf0cad
2 changed files with 43 additions and 1 deletions
|
@ -122,7 +122,7 @@ turndownService.addRule("listItem", {
|
|||
if (parent.nodeName === "OL") {
|
||||
var start = parent.getAttribute("start")
|
||||
var index = Array.prototype.indexOf.call(parent.children, node)
|
||||
prefix = (start ? Number(start) + index : index + 1) + ". "
|
||||
prefix = (start ? Number(start) + index : index + 1) + ". "
|
||||
}
|
||||
return prefix + content + (node.nextSibling && !/\n$/.test(content) ? "\n" : "")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue