Add support for image, rules and footnotes
This commit is contained in:
parent
cf69238b82
commit
08a741eabf
2 changed files with 146 additions and 28 deletions
35
src/test/rustdoc/check-rule-image-footnote.rs
Normal file
35
src/test/rustdoc/check-rule-image-footnote.rs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
// @has foo/fn.f.html
|
||||
// @has - '<p>hard break: after hard break</p><hr>'
|
||||
// @has - '<img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="Rust">'
|
||||
// @has - '<li id="ref1">'
|
||||
// @has - '<sup id="supref1"><a href="#ref1">1</a></sup>'
|
||||
/// markdown test
|
||||
///
|
||||
/// this is a [link].
|
||||
///
|
||||
/// [link]: https://example.com "this is a title"
|
||||
///
|
||||
/// hard break:
|
||||
/// after hard break
|
||||
///
|
||||
/// -----------
|
||||
///
|
||||
/// a footnote[^footnote].
|
||||
///
|
||||
/// [^footnote]: Thing
|
||||
///
|
||||
/// 
|
||||
#[deprecated(note = "Struct<T>")]
|
||||
pub fn f() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue