// This file is auto-generated by the build script // Please, do not modify it manually use super::test_markdown_html; #[test] fn footnotes_test_1() { let original = r##"Lorem ipsum.[^a] [^missing] [^a]: Cool. "##; let expected = r##"
Lorem ipsum.1 [^missing]
Cool.
"##; test_markdown_html(original, expected, false, false, false); } #[test] fn footnotes_test_3() { let original = r##"Songs that simply loop are a popular way to annoy people. [^examples] [^examples]: * [The song that never ends](https://www.youtube.com/watch?v=0U2zJOryHKQ) * [I know a song that gets on everybody's nerves](https://www.youtube.com/watch?v=TehWI09qxls) * [Ninety-nine bottles of beer on the wall](https://www.youtube.com/watch?v=qVjCag8XoHQ) "##; let expected = r##"This is the song that never ends.
Yes it goes on and on my friends.1
Songs that simply loop are a popular way to annoy people. 1
Songs that simply loop are a popular way to annoy people. 1
not code
code
quote
external quote
indented quote
a b
c
d
If heaven ever wishes to grant me a boon, it will be a total effacing of the results of a mere chance which fixed my eye on a certain stray piece of shelf-paper. It was nothing on which I would naturally have stumbled in the course of my daily round, for it was an old number of an Australian journal, the Sydney Bulletin for April 18, 1925. It had escaped even the cutting bureau which had at the time of its issuance been avidly collecting material for my uncle's research.
I had largely given over my inquiries into what Professor Angell called the "Cthulhu Cult", and was visiting a learned friend in Paterson, New Jersey; the curator of a local museum and a mineralogist of note. Examining one day the reserve specimens roughly set on the storage shelves in a rear room of the museum, my eye was caught by an odd picture in one of the old papers spread beneath the stones. It was the Sydney Bulletin I have mentioned, for my friend had wide affiliations in all conceivable foreign parts; and the picture was a half-tone cut of a hideous stone image almost identical with that which Legrasse had found in the swamp.
If heaven ever wishes to grant me a boon, it will be a total effacing of the results of a mere chance which fixed my eye on a certain stray piece of shelf-paper. It was nothing on which I would naturally have stumbled in the course of my daily round, for it was an old number of an Australian journal, the Sydney Bulletin for April 18, 1925. It had escaped even the cutting bureau which had at the time of its issuance been avidly collecting material for my uncle's research.
I had largely given over my inquiries into what Professor Angell called the "Cthulhu Cult", and was visiting a learned friend in Paterson, New Jersey; the curator of a local museum and a mineralogist of note. Examining one day the reserve specimens roughly set on the storage shelves in a rear room of the museum, my eye was caught by an odd picture in one of the old papers spread beneath the stones. It was the Sydney Bulletin I have mentioned, for my friend had wide affiliations in all conceivable foreign parts; and the picture was a half-tone cut of a hideous stone image almost identical with that which Legrasse had found in the swamp.
How much wood would a woodchuck chuck.
If a woodchuck could chuck wood.
first paragraph inside footnote
first paragraph inside footnote
second paragraph still inside footnote
He's also really stupid. 1
1Because your mamma!
As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; test_markdown_html(original, expected, false, false, false); } #[test] fn footnotes_test_11() { let original = r##"Nested footnotes are considered poor style. [^a] [^xkcd] [^indent1] [^indent2] [^a]: This does not mean that footnotes cannot reference each other. [^b] [^b]: This means that a footnote definition cannot be directly inside another footnote definition. > This means that a footnote cannot be directly inside another footnote's body. [^e] > > [^e]: They can, however, be inside anything else. [^xkcd]: [The other kind of nested footnote is, however, considered poor style.](https://xkcd.com/1208/) [^indent1]: indent1 [^indent2]: indent2 "##; let expected = r##"Nested footnotes are considered poor style. 1 2 3 4
This does not mean that footnotes cannot reference each other. 5
This means that a footnote definition cannot be directly inside another footnote definition.
This means that a footnote cannot be directly inside another footnote's body. 6
6They can, however, be inside anything else.
indent1
indent2
1
I know. Wrong Doe. And it won't render right.
Common for people practicing music.
Lorem ipsum.1
An unordered list before the footnotes:
Cool.
Songs that simply loop are a popular way to annoy people. 1
Songs that simply loop are a popular way to annoy people. 2
Songs that simply loop are a popular way to annoy people. 3
My [cmark-gfm]1.
My [cmark-gfm1].
cmark-gfm is under the MIT license, so incorporating parts of its test suite into pulldown-cmark should be fine.
My [otherlink1].
[otherlink1]: https://github.com/github/cmark-gfm/blob/1e230827a584ebc9938c3eadc5059c55ef3c9abf/test/extensions.txt#L702
"##; test_markdown_html(original, expected, false, false, false); } #[test] fn footnotes_test_17() { let original = r##"[^1]: footnote definition text // indented code block fn main() { println!("hello world!"); } "##; let expected = r##"footnote definition text
// indented code block
fn main() {
println!("hello world!");
}
"##;
test_markdown_html(original, expected, false, false, false);
}
#[test]
fn footnotes_test_18() {
let original = r##"[^1]: footnote definition text
[^1]\: this is a reference, rather than a definition
"##;
let expected = r##"footnote definition text 1: this is a reference, rather than a definition
column1 | column2 |
---|---|
row1a | row1b |
row2a | row2b |
test
first
2test Second 2 test
First | Second |
---|---|
first | second |
test | test 3
First | Second |
---|---|
first | second |
[^4]: test | test [^4] |
"##; test_markdown_html(original, expected, false, false, false); } #[test] fn footnotes_test_21() { let original = r##"Test [^] link [^]: https://rust-lang.org "##; let expected = r##"4
- test 4
Test ^ link
"##; test_markdown_html(original, expected, false, false, false); } #[test] fn footnotes_test_22() { let original = r##"[^foo\ bar]: not a footnote definition [baz\ quux]: https://rust-lang.org [first second]: https://rust-lang.org [^third fourth]: not a footnote definition [baz\ quux] [^foo\ bar] [first second] [^third fourth] "##; let expected = r##"[^foo
bar]: not a footnote definition
[^third fourth]: not a footnote definition
baz
quux
[^foo
bar]
first
second
[^third
fourth]
footnote 1 footnote [^quux]
[^quux]: x
x