Skip to content

Commit 295f25b

Browse files
Set hoedown to generate error index
1 parent 80a2a94 commit 295f25b

File tree

1 file changed

+2
-2
lines changed
  • src/tools/error_index_generator

1 file changed

+2
-2
lines changed

src/tools/error_index_generator/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use std::path::PathBuf;
2424

2525
use syntax::diagnostics::metadata::{get_metadata_dir, ErrorMetadataMap, ErrorMetadata};
2626

27-
use rustdoc::html::markdown::{Markdown, PLAYGROUND};
27+
use rustdoc::html::markdown::{Markdown, PLAYGROUND, RenderType};
2828
use rustc_serialize::json;
2929

3030
enum OutputFormat {
@@ -100,7 +100,7 @@ impl Formatter for HTMLFormatter {
100100

101101
// Description rendered as markdown.
102102
match info.description {
103-
Some(ref desc) => write!(output, "{}", Markdown(desc))?,
103+
Some(ref desc) => write!(output, "{}", Markdown(desc, RenderType::Hoedown))?,
104104
None => write!(output, "<p>No description.</p>\n")?,
105105
}
106106

0 commit comments

Comments
 (0)