Auto merge of #44274 - Mark-Simulacrum:rustdoc-tests, r=alexcrichton
Test rustdoc. Also fixes the broken tests. r? @alexcrichton
This commit is contained in:
commit
f982ff05db
5 changed files with 79 additions and 13 deletions
|
|
@ -16,10 +16,12 @@
|
|||
//! of `fmt::Display`. Example usage:
|
||||
//!
|
||||
//! ```
|
||||
//! use rustdoc::html::markdown::Markdown;
|
||||
//! #![feature(rustc_private)]
|
||||
//!
|
||||
//! use rustdoc::html::markdown::{RenderType, Markdown};
|
||||
//!
|
||||
//! let s = "My *markdown* _text_";
|
||||
//! let html = format!("{}", Markdown(s));
|
||||
//! let html = format!("{}", Markdown(s, RenderType::Pulldown));
|
||||
//! // ... something using html
|
||||
//! ```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue