Switch to pulldown as default markdown renderer
This commit is contained in:
parent
0b90e4e8cd
commit
f31204662b
@ -241,8 +241,8 @@ pub fn opts() -> Vec<RustcOptGroup> {
|
|||||||
or `#![doc(html_playground_url=...)]`",
|
or `#![doc(html_playground_url=...)]`",
|
||||||
"URL")
|
"URL")
|
||||||
}),
|
}),
|
||||||
unstable("enable-commonmark", |o| {
|
unstable("disable-commonmark", |o| {
|
||||||
o.optflag("", "enable-commonmark", "to enable commonmark doc rendering/testing")
|
o.optflag("", "disable-commonmark", "to disable commonmark doc rendering/testing")
|
||||||
}),
|
}),
|
||||||
unstable("display-warnings", |o| {
|
unstable("display-warnings", |o| {
|
||||||
o.optflag("", "display-warnings", "to print code warnings when testing doc")
|
o.optflag("", "display-warnings", "to print code warnings when testing doc")
|
||||||
@ -346,10 +346,10 @@ pub fn main_args(args: &[String]) -> isize {
|
|||||||
let css_file_extension = matches.opt_str("e").map(|s| PathBuf::from(&s));
|
let css_file_extension = matches.opt_str("e").map(|s| PathBuf::from(&s));
|
||||||
let cfgs = matches.opt_strs("cfg");
|
let cfgs = matches.opt_strs("cfg");
|
||||||
|
|
||||||
let render_type = if matches.opt_present("enable-commonmark") {
|
let render_type = if matches.opt_present("disable-commonmark") {
|
||||||
RenderType::Pulldown
|
|
||||||
} else {
|
|
||||||
RenderType::Hoedown
|
RenderType::Hoedown
|
||||||
|
} else {
|
||||||
|
RenderType::Pulldown
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(ref p) = css_file_extension {
|
if let Some(ref p) = css_file_extension {
|
||||||
|
Loading…
Reference in New Issue
Block a user