Skip to content

Commit

Permalink
Demonstrate failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jan 23, 2023
1 parent 2e219a9 commit 2b0ebc6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,30 @@ fn footnote_in_table() {
));
}

#[test]
fn footnote_with_superscript() {
html_opts!(
[extension.superscript, extension.footnotes],
concat!(
"Here is a footnote reference.[^1]\n",
"\n",
"[^1]: Here is the footnote.\n",
),
concat!(
"<p>Here is a footnote reference.<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>Here is the footnote. <a href=\"#fnref1\" \
class=\"footnote-backref\">↩</a></p>\n",
"</li>\n",
"</ol>\n",
"</section>\n"
),
);
}

#[test]
fn regression_back_to_back_ranges() {
html(
Expand Down

0 comments on commit 2b0ebc6

Please sign in to comment.