cmark

My personal build of CMark ✏️

Commit
ee570cab6af160bd50262f81f0e1f17e988b6e45
Parent
c5a0fdf28119c60baf755ce9de676c0d7b98740a
Author
John MacFarlane <jgm@berkeley.edu>
Date

spec2md.pl: Make Example numbers into links.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified spec2md.pl 2 1 1
diff --git a/spec2md.pl b/spec2md.pl
@@ -12,7 +12,7 @@ while (<STDIN>) {
     if ($stage == 0) {
       $example++;
       print "\n<div class=\"example\" id=\"example-$example\" data-section=\"$section\">\n";
-      print "<div class=\"examplenum\">Example $example</div>\n\n";
+      print "<div class=\"examplenum\"><a href=\"#example-$example\">Example $example</a></div>\n\n";
       print "````````````````````````````````````````````````````````` markdown\n";
     } elsif ($stage == 1) {
       print "`````````````````````````````````````````````````````````\n\n";