cmark

My personal build of CMark ✏️

Commit
cc7788cf62999d317626301960f83d42219acb7e
Parent
103d3d37324d8629d7dc1d549a38fbb8981b1f00
Author
John MacFarlane <jgm@berkeley.edu>
Date

Improved (interact) links in spec.

- Link now has pointer cursor. - → is converted to tab.

Closes #174.

Diffstat

1 file changed, 3 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified template.html 5 3 2
diff --git a/template.html b/template.html
@@ -60,7 +60,7 @@ pre.html span.space:after {
 }
 #watermark a { color: white; }
 div.examplenum { font-size: 82%; text-align: left; }
-a.dingus { color: red; }
+a.dingus { color: red; cursor: pointer; }
 a.footnoteRef > sup:before {
   content: "[";
 }
@@ -78,7 +78,8 @@ $$(document).ready(function() {
   $$("div.example").each(function(e) {
     var t = $$(this).find('pre.markdown > code').text();
     $$(this).find('a.dingus').click(function(f) {
-      window.open('/dingus.html?text=' + encodeURIComponent(t));
+      window.open('/dingus.html?text=' +
+        encodeURIComponent(t.replace(/→/g,"\t")));
     });
   });
   $$("pre.markdown").dblclick(function(e) { window.open('/dingus.html?text=' +