From: Lady <redacted>
Date: Sun, 12 May 2024 07:03:30 +0000 (-0400)
Subject: Switch symbols for subsection and subsubsection
X-Git-Tag: 0.2.0
X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain/703e09d53cce1606d2a98ebc2aa1b8e10f9565fc?ds=inline;hp=46ff96d74d0a46cded4729ab19066a73a1e6cd65

Switch symbols for subsection and subsubsection

`❦` is a stronger symbol than `✠`; its corresponding directional
fences `❧` and `☙` indicate section boundaries, while `⹐` and `⹑`
simply enclose emphasis.
---

diff --git a/README.markdown b/README.markdown
index ea08cb4..6a21246 100644
--- a/README.markdown
+++ b/README.markdown
@@ -58,10 +58,10 @@ After this classification, each quoted or unquoted paragraph is further
 - If the paragraph begins with `§`, it is a section heading
     (`<html:h2>`).
 
-- If the paragraph begins with `✠`, it is a subsection heading
+- If the paragraph begins with `❦`, it is a subsection heading
     (`<html:h3>`).
 
-- If the paragraph begins with `❦`, it is a subsubsection heading
+- If the paragraph begins with `✠`, it is a subsubsection heading
     (`<html:h4>`).
 
 - If the paragraph begins with `•` or `🔢`, it is a primary unordered
diff --git a/parser.xslt b/parser.xslt
index 0d676ef..6f31262 100644
--- a/parser.xslt
+++ b/parser.xslt
@@ -242,17 +242,17 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 									</call-template>
 								</html:h2>
 							</when>
-							<when test="starts-with($text, '✠ ')">
+							<when test="starts-with($text, '❦ ')">
 								<html:h3>
 									<call-template name="LesML:id-and-contents">
-										<with-param name="source" select="substring-after($text, '✠ ')"/>
+										<with-param name="source" select="substring-after($text, '❦ ')"/>
 									</call-template>
 								</html:h3>
 							</when>
-							<when test="starts-with($text, '❦ ')">
+							<when test="starts-with($text, '✠ ')">
 								<html:h4>
 									<call-template name="LesML:id-and-contents">
-										<with-param name="source" select="substring-after($text, '❦ ')"/>
+										<with-param name="source" select="substring-after($text, '✠ ')"/>
 									</call-template>
 								</html:h4>
 							</when>