cmark

My personal build of CMark ✏️

Commit
1619a0771dad8d40662bfbc335162696931e6b9b
Parent
2590e3b4448798db88f650a4fbc37cec3b741a4a
Author
John MacFarlane <jgm@berkeley.edu>
Date

Strip {-} off unnumbered sections in HTML version of spec.

Diffstat

1 file changed, 2 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified makespec.py 2 2 0
diff --git a/makespec.py b/makespec.py
@@ -83,6 +83,8 @@ with open('spec.txt', 'r', encoding='utf-8') as spec:
                     level = len(match.group(1))
                     if re.search(r'{-}$', section):
                         section = re.sub(r' *{-} *$', '', section)
+                        if specformat == 'html':
+                            ln = re.sub(r' *{-} *$', '', ln)
                         number = ''
                     else:
                         if lastlevel == level: