Skip to content

Commit

Permalink
implemented get_target function for the UmiRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sowasvonbot committed Dec 10, 2023
1 parent 480b554 commit 02d89b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inline/tests/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn run_spec_test(case: test_runner::test_file::TestCase) {
let input = test.input.trim_end();
let um = unimarkup_core::Unimarkup::parse(input, cfg);
test_file::TestOutputs {
html: Some(um.render_html().unwrap().to_string()),
html: Some(um.render_html(false).unwrap().to_string()),
um: Some(test.input.clone()),
}
},
Expand Down
2 changes: 1 addition & 1 deletion render/src/pdf/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub mod render;
pub mod render;
5 changes: 5 additions & 0 deletions render/src/umi/render.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use unimarkup_inline::element::InlineElement;
use unimarkup_parser::elements::blocks::Block;

use crate::log_id::RenderError;
use crate::render::{Context, OutputFormat, Renderer};
use std::collections::HashMap;

Expand Down Expand Up @@ -270,4 +271,8 @@ impl Renderer<Umi> for UmiRenderer {
context.get_lang().to_string(),
))
}

fn get_target(&mut self) -> Result<Umi, RenderError> {
Ok(Umi::default())
}
}

0 comments on commit 02d89b0

Please sign in to comment.