markdown
Version:
A sensible Markdown parser for javascript
70 lines (69 loc) • 1.77 kB
JSON
["html", ["p", "This is a para with a footnote.", ["sup", {
"class": "footnote-ref",
"id": "fnref-1"
},
["a", {
"href": "#fn-1"
},
"1"]]],
["p", "This is another para with a footnote", ["sup", {
"class": "footnote-ref",
"id": "fnref-2"
},
["a", {
"href": "#fn-2"
},
"2"]], " in it. Actually it has two", ["sup", {
"class": "footnote-ref",
"id": "fnref-3"
},
["a", {
"href": "#fn-3"
},
"3"]], " of\u000athem. No, three", ["sup", {
"class": "footnote-ref",
"id": "fnref-4"
},
["a", {
"href": "#fn-4"
},
"4"]], "."], "\u000a\u000a", ["div", {
"class": "footnotes"
},
"\u000a", ["hr"], "\u000a", ["ol", ["li", {
"id": "fn-1"
},
["p", "Here is the body of the first footnote.", ["a", {
"href": "#fnref-1",
"class": "footnoteBackLink",
"title": "Jump back to footnote 1 in the text."
},
"↩"]]],
["li", {
"id": "fn-2"
},
["p", "And of the second footnote."],
["p", "This one has multiple paragraphs.", ["a", {
"href": "#fnref-2",
"class": "footnoteBackLink",
"title": "Jump back to footnote 2 in the text."
},
"↩"]]],
["li", {
"id": "fn-3"
},
["p", "Here is a footnote body that starts on next line.", ["a", {
"href": "#fnref-3",
"class": "footnoteBackLink",
"title": "Jump back to footnote 3 in the text."
},
"↩"]]],
["li", {
"id": "fn-4"
},
["p", "quickie \"that looks like a link ref if not careful\"", ["a", {
"href": "#fnref-4",
"class": "footnoteBackLink",
"title": "Jump back to footnote 4 in the text."
},
"↩"]]]]], "\u000a"]