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

index 406f611f07d5ed3ddcde89b0e904b936d7b8960f..2901a5d2a727f574dae63254416971dfb138597c 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 de60b8fd0422dd68ad67227fd73ba718456d5d05..a93f42558110a632c34d80be2c1898a7ac5e7e70 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.022137 seconds and 4 git commands to generate.