From: Lady Date: Sun, 27 Apr 2025 04:26:14 +0000 (-0400) Subject: Support inline comments X-Git-Tag: 0.5.0~5 X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain/b61d90a7f838710fec07ed4a1765909f6dfcd36e?ds=sidebyside;hp=3d07ad60c672b48d35bad946490d9ce485c15923 Support inline comments Comments work different from other inlines and have their own processing rules. “Empty” comments are useful primarily to break up spans of text into discrete text nodes. --- diff --git a/README.markdown b/README.markdown index 6c97294..327f253 100644 --- a/README.markdown +++ b/README.markdown @@ -188,6 +188,11 @@ The remaining characters in a paragraph form its contents. Markup within paragraphs is delimited with·out exception by pairs of characters, with the following precedence :⁠— +- The characters `⌦` and `⌫` indicate inline comments. + A single character `⌧` may be used to indicate an “empty” comment + (consisting of `U+034F COMBINING GRAPHEME JOINER` for X·M·L + compatibility). + - The characters `{🔗` and `>}` indicate a hyperlink to a U·R·L (``). The hyperlink must contain at least one `<`; the content before the diff --git a/parser.xslt b/parser.xslt index 7f6d153..7e6f6a3 100644 --- a/parser.xslt +++ b/parser.xslt @@ -625,7 +625,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + @@ -750,6 +750,99 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one +