Skip to content

Commit f312046

Browse files
Switch to pulldown as default markdown renderer
1 parent 0b90e4e commit f312046

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustdoc/lib.rs

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

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

355355
if let Some(ref p) = css_file_extension {

0 commit comments

Comments
 (0)