Skip to content

Commit 49065a1

Browse files
Rollup merge of rust-lang#47398 - GuillaumeGomez:pulldown-warnings, r=QuietMisdreavus
Switch to pulldown as default markdown renderer r? @QuietMisdreavus
2 parents c0ae371 + f312046 commit 49065a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustdoc/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ pub fn opts() -> Vec<RustcOptGroup> {
242242
or `#![doc(html_playground_url=...)]`",
243243
"URL")
244244
}),
245-
unstable("enable-commonmark", |o| {
246-
o.optflag("", "enable-commonmark", "to enable commonmark doc rendering/testing")
245+
unstable("disable-commonmark", |o| {
246+
o.optflag("", "disable-commonmark", "to disable commonmark doc rendering/testing")
247247
}),
248248
unstable("display-warnings", |o| {
249249
o.optflag("", "display-warnings", "to print code warnings when testing doc")
@@ -347,10 +347,10 @@ pub fn main_args(args: &[String]) -> isize {
347347
let css_file_extension = matches.opt_str("e").map(|s| PathBuf::from(&s));
348348
let cfgs = matches.opt_strs("cfg");
349349

350-
let render_type = if matches.opt_present("enable-commonmark") {
351-
RenderType::Pulldown
352-
} else {
350+
let render_type = if matches.opt_present("disable-commonmark") {
353351
RenderType::Hoedown
352+
} else {
353+
RenderType::Pulldown
354354
};
355355

356356
if let Some(ref p) = css_file_extension {

0 commit comments

Comments
 (0)