~subsetpark/bagatto

b6442147cba8be445138834953e3ee4c434c8e08 — Zach Smith 1 year, 15 days ago 1a39d87
Include alternate footnotes output
1 files changed, 3 insertions(+), 1 deletions(-)

M test/markdown.janet
M test/markdown.janet => test/markdown.janet +3 -1
@@ 21,8 21,10 @@

                 [^bar]: baz
                 ```
        # Different builds of markable produce different footnote outputs, but both are valid.
        expected "<p>foo<sup class=\"footnote-ref\"><a href=\"#fn1\" id=\"fnref1\">1</a></sup></p>\n<section class=\"footnotes\">\n<ol>\n<li id=\"fn1\">\n<p>baz <a href=\"#fnref1\" class=\"footnote-backref\">\xE2\x86\xA9</a></p>\n</li>\n</ol>\n</section>\n"
        alternate "<p>foo<sup class=\"footnote-ref\"><a href=\"#fn-bar\" id=\"fnref-bar\" data-footnote-ref>1</a></sup></p>\n<section class=\"footnotes\" data-footnotes>\n<ol>\n<li id=\"fn-bar\">\n<p>baz <a href=\"#fnref-bar\" class=\"footnote-backref\" data-footnote-backref aria-label=\"Back to content\">\xE2\x86\xA9</a></p>\n</li>\n</ol>\n</section>\n"
        rendered (bagatto/markdown->html footnote)]
    (is (= expected rendered))))
    (is (or (= alternate rendered) (= expected rendered)))))

(run-tests!)