]> Lady’s Gitweb - LesML/commitdiff
Support “comment” paragraphs
authorLady <redacted>
Sat, 19 Oct 2024 19:50:48 +0000 (15:50 -0400)
committerLady <redacted>
Tue, 31 Mar 2026 02:01:54 +0000 (22:01 -0400)
README.markdown
parser.xslt

index 12dcbd415f572a71b331495b2ebff7a65c7e394bb9184983692cfbc97f6806aa..2a25941f0175018345029bfeccd4e86d5fc4b4f2ff287d614bbbc0ac31679d9c 100644 (file)
@@ -159,6 +159,10 @@ After this classification, each quoted or unquoted paragraph is further
 - If the paragraph begins with `⚠︎`, it is a warning note
     (`<html:div role="note" class="warn">`).
 
+- If the paragraph begins with `#`, it is a comment.
+  Comments produce X·M·L comment nodes and can be used to break up list
+    items into separate lists.
+
 - If the paragraph begins with `⋯`, it is a continuation paragraph
     (`<html:div class="continuation">`).
   Continuation paragraphs may be used to continue a preceding list item
index de158ec73985342f3417061fb107857470fafe22d34a7fd6046aeea4935790f2..489b1e00582879bc6120d5d153bb59ccaa1899542f29b0f12b70fdb9fa2975ee 100644 (file)
@@ -460,6 +460,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                        </html:p>
                                                                </html:div>
                                                        </when>
+                                                       <when test="starts-with($text, '# ')">
+                                                               <comment>
+                                                                       <value-of select="substring-after($text, '# ')"/>
+                                                               </comment>
+                                                       </when>
                                                        <otherwise>
                                                                <html:p>
                                                                        <call-template name="LesML:id-and-contents">
This page took 0.218294 seconds and 4 git commands to generate.