From f6a10af0a81a1b3a83bdce660ed5ee88abcc063a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Wed, 28 Dec 2022 11:35:45 -0500 Subject: first attempt Signed-off-by: Xe Iaso --- lib/xesite_markdown/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/xesite_markdown/src/lib.rs') diff --git a/lib/xesite_markdown/src/lib.rs b/lib/xesite_markdown/src/lib.rs index 941761d..0c6900a 100644 --- a/lib/xesite_markdown/src/lib.rs +++ b/lib/xesite_markdown/src/lib.rs @@ -175,6 +175,14 @@ pub fn render(inp: &str) -> Result { el.replace(&xesite_templates::talk_warning().0, ContentType::Html); Ok(()) }), + element!("xeblog-story", |el| { + let name = el + .get_attribute("name") + .ok_or(Error::MissingElementAttribute("name".to_string()))?; + + el.replace(&xesite_templates::story(name).0, ContentType::Html); + Ok(()) + }), element!("xeblog-video", |el| { let path = el .get_attribute("path") -- cgit v1.2.3