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/e95d0255fde4583b6f76bea18beca5cc727eb04f73596b678d872cc742a65890?hp=c85f6059b3473759d14c45b1cbf890419d7d4d6d582a32892f1f12ded08dbfd6 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 6b117a5..4c69cdc 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 6d58e5e..0221e4c 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 +