]> Lady’s Gitweb - LesML/commit
Enable nested tags of the same kind
authorLady <redacted>
Sat, 22 Mar 2025 01:45:20 +0000 (21:45 -0400)
committerLady <redacted>
Tue, 31 Mar 2026 02:02:22 +0000 (22:02 -0400)
commit0b65ee4b9fea227f3fdd492b78288a987dde451dd6143b32be934c0855f431e7
tree8da6871da4c31c0f244e293b1a5ff3f0f5bc9539dd760ab54f8ecd73c760dbe4
parent33e28051265bb1e0d5dacefeb6de15730a7521f08d4bdbc0d4901380483e86ee
Enable nested tags of the same kind

Previously, the processing rules do not allow nesting an element inside
  of itself: ‹ ☞︎nested ☞︎tags☜︎ like ☞︎this☜︎☜︎ › do not work as
  expected.
This design choice was to (at least) appropriately handle
  ‹ ☞︎⟨this☜︎ weird ⟨case☜︎⟩ ›, where each inline should stop at the
  first delimiter.
Correct processing starts by looking for end sigils first, not start
  sigils, backtracking to the last start sigil which precedes it,
  wrapping that text, and then reprocessing the entire set of nodes
  until no more end sigils with matching start sigils are found.

This commit implements that behaviour, which is of course a fair bit
  more complicated but should improve the results.
It also changes specifying characters by Unicode codepoint to use
  curly braces rather than angle brackets, as the latter conflicted
  with the angle brackets used in links.
Specifying by Unicode codepoint still isn¦t supported in links, but
  the behaviour should be less surprising.

The old Unicode codepoint behaviour was probably broken also, in the
  case where the codepoint was not the first character in a paragraph,
  but it is fixed now.
README.markdown
parser.xslt
This page took 0.047858 seconds and 4 git commands to generate.