Skip to content

Commit

Permalink
Improve test case of superscript + foonotes
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jan 25, 2023
1 parent 8cd3e89 commit 43f334e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,17 +1075,29 @@ fn footnote_with_superscript() {
concat!(
"Here is a footnote reference.[^1]\n",
"\n",
"Here is a longer footnote reference.[^ref]\n",
"\n",
"e = mc^2^.\n",
"\n",
"[^1]: Here is the footnote.\n",
"[^ref]: Here is another footnote.\n",
),
concat!(
"<p>Here is a footnote reference.<sup class=\"footnote-ref\"><a href=\"#fn1\" \
id=\"fnref1\">1</a></sup></p>\n",
"<p>Here is a longer footnote reference.<sup class=\"footnote-ref\"><a href=\"#fn2\" \
id=\"fnref2\">2</a></sup></p>\n",
"<p>e = mc<sup>2</sup>.</p>\n",
"<section class=\"footnotes\">\n",
"<ol>\n",
"<li id=\"fn1\">\n",
"<p>Here is the footnote. <a href=\"#fnref1\" \
class=\"footnote-backref\">↩</a></p>\n",
"</li>\n",
"<li id=\"fn2\">\n",
"<p>Here is another footnote. <a href=\"#fnref2\" \
class=\"footnote-backref\">↩</a></p>\n",
"</li>\n",
"</ol>\n",
"</section>\n"
),
Expand Down

0 comments on commit 43f334e

Please sign in to comment.