treeman / tree-sitter-djot

MIT License
31 stars 5 forks source link

Emphasis/strong in link defs span over multiple lines #43

Open treeman opened 3 months ago

treeman commented 3 months ago
[a_b]: /x
[c_d]: /y

Generates only a single link definition:

(document [0, 0] - [2, 0]
  (link_reference_definition [0, 0] - [2, 0]
    (link_label [0, 1] - [1, 4]
      (emphasis [0, 2] - [1, 3]
        (emphasis_begin [0, 2] - [0, 3])
        (content [0, 3] - [1, 2])
        (emphasis_end [1, 2] - [1, 3])))
    (link_destination [1, 7] - [1, 9])))