|
|
@ -13,7 +13,6 @@ mod utils;
|
|
|
|
|
|
|
|
|
|
|
|
const MAX_LINK_NESTED_DEPTH: usize = 10;
|
|
|
|
const MAX_LINK_NESTED_DEPTH: usize = 10;
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Default)]
|
|
|
|
|
|
|
|
pub struct Template;
|
|
|
|
pub struct Template;
|
|
|
|
|
|
|
|
|
|
|
|
impl Template {
|
|
|
|
impl Template {
|
|
|
@ -288,6 +287,8 @@ mod lib_tests {
|
|
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
#[test]
|
|
|
|
fn test_sad_path_invalid_file() {
|
|
|
|
fn test_sad_path_invalid_file() {
|
|
|
|
|
|
|
|
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
|
|
|
|
|
|
|
|
|
|
|
|
let start_chapter_content = "{{#template footer.md}}";
|
|
|
|
let start_chapter_content = "{{#template footer.md}}";
|
|
|
|
|
|
|
|
|
|
|
|
let actual_chapter_content =
|
|
|
|
let actual_chapter_content =
|
|
|
|