djot.lua icon indicating copy to clipboard operation
djot.lua copied to clipboard

Improve source positions for lists

Open jgm opened this issue 3 years ago • 0 comments

 - a
 - b

yields

doc
  list (1:2:2-4:1:11) list_style="-" tight="true"
    list_item (1:2:2-2:2:7)
      para (1:4:4-2:1:6)
        str (1:4:4-1:4:4) text="a"
    list_item (2:2:7-4:1:11)
      para (2:4:9-2:5:10)
        str (2:4:9-2:4:9) text="b"
references = {
}
footnotes = {
}

Ideally the first list item would end at 2:1 or 1:4 rather than 2:2.

jgm avatar Nov 25 '22 15:11 jgm