1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![crate_name = "foo"]
13 // ignore-tidy-linelength
16 // @has - '<p>markdown test</p>'
17 // @has - '<p>this is a <a href="https://example.com" title="this is a title">link</a>.</p>'
19 // @has - '<p>a footnote<sup id="supref1"><a href="#ref1">1</a></sup>.</p>'
20 // @has - '<p>another footnote<sup id="supref2"><a href="#ref2">2</a></sup>.</p>'
21 // @has - '<p><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="Rust" /></p>'
22 // @has - '<div class="footnotes"><hr><ol><li id="ref1">'
23 // @has - '<p>Thing <a href="#supref1" rev="footnote">↩</a></p></li><li id="ref2">'
24 // @has - '<p>Another Thing <a href="#supref2" rev="footnote">↩</a></p></li></ol></div>'
29 /// [link]: https://example.com "this is a title"
33 /// a footnote[^footnote].
35 /// another footnote[^footnotebis].
37 /// [^footnote]: Thing
40 /// [^footnotebis]: Another Thing
43 /// ![Rust](https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png)