cmark

My personal build of CMark ✏️

Commit
c74b87f9bbdf8a147b892bd0ac48dbd01a0297cf
Parent
75007b20b4071ad4c6f7168b98c3218739693769
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed (interact) link in template.html.

This broke when we switched from pandoc to cmark for the spec, because the class on code changed from 'markdown' to 'language-markdown'.

Diffstat

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified tools/template.html 4 2 2
diff --git a/tools/template.html b/tools/template.html
@@ -71,13 +71,13 @@ a.footnoteRef > sup {
 <script type="text/javascript">
 $$(document).ready(function() {
   $$("div.example").each(function(e) {
-    var t = $$(this).find('code.markdown').text();
+    var t = $$(this).find('code.language-markdown').text();
     $$(this).find('a.dingus').click(function(f) {
       window.open('/dingus.html?text=' +
         encodeURIComponent(t.replace(/→/g,"\t")));
     });
   });
-  $$("code.markdown").dblclick(function(e) { window.open('/dingus.html?text=' +
+  $$("code.language-markdown").dblclick(function(e) { window.open('/dingus.html?text=' +
       encodeURIComponent($$(this).find('code').text()));
   });
 });