From: Lady Date: Tue, 31 Mar 2026 01:31:16 +0000 (-0400) Subject: Support definition lists (finally!) X-Git-Tag: 0.7.1^0 X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain/refs/heads/%F0%9F%86%95 Support definition lists (finally!) --- diff --git a/README.lesml b/README.lesml index dfc813b..4754226 100644 --- a/README.lesml +++ b/README.lesml @@ -1,5 +1,5 @@ #!lesml@en$ -## @(#)💄📝 Les·M·L README.lesml 2026-03-31T01:28:11Z +## @(#)💄📝 Les·M·L README.lesml 2026-03-31T01:31:16Z ## SPDX-FileCopyrightText: 2024, 2025, 2026 Lady ## SPDX-License-Identifier: CC0-1.0 @@ -86,6 +86,9 @@ Following this, new blocks are opened for each successive sigil :⁠— When it is the first sigil in the list, `◦´ may be used as a shorthand for `⋮•´, `▪´ for `⋮⋮•´, and `⁃´ for `⋮⋮⋮•´. +• A `℣´ sigil indicates a definition term, and a `℟´ sigil indicates + the corresponding value. + • A `№´ sigil indicates an ordered list item. • A `※´ sigil indicates an ordinary note. diff --git "a/TESTING/\360\237\223\244/dl" "b/TESTING/\360\237\223\244/dl" new file mode 100644 index 0000000..098e356 --- /dev/null +++ "b/TESTING/\360\237\223\244/dl" @@ -0,0 +1,2 @@ + +

Nesting is allowed

And works as expected

  • As can other things

One

Two

Response one

Response two

A trailing versicle creates an empty <dd>

  • A different kind of list

A leading response creates an empty <dt>

diff --git "a/TESTING/\360\237\223\245/dl" "b/TESTING/\360\237\223\245/dl" new file mode 100644 index 0000000..077a43e --- /dev/null +++ "b/TESTING/\360\237\223\245/dl" @@ -0,0 +1,21 @@ +#?lesml@en$ + +℣ ℣ Nesting is allowed + +⋮ ℟ And works as expected + +℟ • As can other things + +℣ One + +℣ Two + +℟ Response one + +℟ Response two + +℣ A trailing versicle creates an empty
+ +• A different kind of list + +℟ A leading response creates an empty
diff --git a/xslt/lesml.xslt b/xslt/lesml.xslt index 2100e06..61539dd 100644 --- a/xslt/lesml.xslt +++ b/xslt/lesml.xslt @@ -1,6 +1,6 @@ @@ -290,6 +290,12 @@ If a block is nested within the wrapping `
´ of a paragraph, the + + + + + + @@ -625,7 +631,7 @@ This also requires processing any paragraph‐type indicators and - + @@ -1834,6 +1840,40 @@ These templates finalize the resulting tree. + +