1
Fork 0

Don't initialize id-map when rendering md files

Adding these "known" values to the table of used ids is only required
when embedding markdown into a rustdoc  html page and may yield
unexpected results when rendering a standalone `*.md` file.
This commit is contained in:
mitaa 2016-03-26 16:42:38 +01:00
parent 6a76872d71
commit 8779e7baa4
3 changed files with 14 additions and 8 deletions

View file

@ -83,7 +83,7 @@ pub fn render(input: &str, mut output: PathBuf, matches: &getopts::Matches,
}
let title = metadata[0];
reset_ids();
reset_ids(false);
let rendered = if include_toc {
format!("{}", MarkdownWithToc(text))