Lady’s Gitweb
/
LesML
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (from parent 1:
2462982
)
Support “comment” paragraphs
author
Lady
<redacted>
Sat, 19 Oct 2024 19:50:48 +0000
(15:50 -0400)
committer
Lady
<redacted>
Sat, 19 Oct 2024 19:50:48 +0000
(15:50 -0400)
README.markdown
patch
|
blob
|
history
parser.xslt
patch
|
blob
|
history
diff --git
a/README.markdown
b/README.markdown
index 406f611f07d5ed3ddcde89b0e904b936d7b8960f..2901a5d2a727f574dae63254416971dfb138597c 100644
(file)
--- a/
README.markdown
+++ b/
README.markdown
@@
-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 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
- 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
diff --git
a/parser.xslt
b/parser.xslt
index de60b8fd0422dd68ad67227fd73ba718456d5d05..a93f42558110a632c34d80be2c1898a7ac5e7e70 100644
(file)
--- a/
parser.xslt
+++ b/
parser.xslt
@@
-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>
</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">
<otherwise>
<html:p>
<call-template name="LesML:id-and-contents">
This page took
0.130097 seconds
and
4
git commands to generate.