Add basic Markdown test
This commit is contained in:
parent
7d07c7b516
commit
52f2dffc29
|
@ -76,3 +76,16 @@ fn render_markdown(markdown: &str) -> String {
|
||||||
);
|
);
|
||||||
FILTER.clean(&output).to_string()
|
FILTER.clean(&output).to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod test {
|
||||||
|
use super::render_markdown;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn markdown_works() {
|
||||||
|
assert_eq!(
|
||||||
|
render_markdown("**bold**"),
|
||||||
|
"<p><strong>bold</strong></p>\n"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user