1
Fork 0

Add missing markdown tags

This commit is contained in:
Guillaume Gomez 2017-03-11 01:43:36 +01:00
parent f6baea23ba
commit d5b6c046de
4 changed files with 251 additions and 151 deletions

View file

@ -25,7 +25,7 @@ use externalfiles::{ExternalHtml, LoadStringError, load_string};
use html::render::reset_ids;
use html::escape::Escape;
use html::markdown;
use html::markdown::{Markdown, MarkdownWithToc, find_testable_code};
use html::markdown::{Markdown, MarkdownWithToc, MarkdownOutputStyle, find_testable_code};
use test::{TestOptions, Collector};
/// Separate any lines at the start of the file that begin with `%`.
@ -94,7 +94,7 @@ pub fn render(input: &str, mut output: PathBuf, matches: &getopts::Matches,
let rendered = if include_toc {
format!("{}", MarkdownWithToc(text))
} else {
format!("{}", Markdown(text, false))
format!("{}", Markdown(text, MarkdownOutputStyle::Fancy))
};
let err = write!(