feat(tools/cheddar): allow disabling tagfilter extension
Makes it possible to do things like embedding YouTube videos in blog posts rendered through Cheddar. Change-Id: I6aed943c7bec0167b9f009d36dd067c52c6d3083 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9275 Tested-by: BuildkiteCI Reviewed-by: Mark Shevchenko <markshevchenko@gmail.com>
This commit is contained in:
parent
94ebb30b1f
commit
87d63e4a1b
3 changed files with 24 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ use std::io::BufReader;
|
|||
fn expect_markdown(input: &str, expected: &str) {
|
||||
let mut input_buf = BufReader::new(input.trim().as_bytes());
|
||||
let mut out_buf: Vec<u8> = vec![];
|
||||
format_markdown(&mut input_buf, &mut out_buf);
|
||||
format_markdown(&mut input_buf, &mut out_buf, true);
|
||||
|
||||
let out_string = String::from_utf8(out_buf).expect("output should be UTF8");
|
||||
assert_eq!(out_string.trim(), expected.trim());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue