cmark

My personal build of CMark ✏️

Commit
60d2011b15a4c41a855f87ef72b4f6dec8e6db11
Parent
456f3f30c42c492357883dfe71c7ca96a36696ea
Author
John MacFarlane <jgm@berkeley.edu>
Date

makespec.py: put pluralizing s inside link for better visuals.

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
@@ -132,6 +132,8 @@ elif specformat == "html":
         result = re.sub(r'␣', '<span class="space"> </span>', result)
         result = re.sub(r'<h([1-6])><a id="([^\"]*)"><\/a> ',
                         "<h\\1 id=\"\\2\">", result)
+        # put plural s inside links for better visuals:
+        result = re.sub(r'<\/a>s', "s</a>", result)
         sys.stdout.write(template.substitute(metadata, body=result))
 
         # check for errors: