diff options
Diffstat (limited to 'lib/xesite_markdown/src/lib.rs')
| -rw-r--r-- | lib/xesite_markdown/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/xesite_markdown/src/lib.rs b/lib/xesite_markdown/src/lib.rs index b225c4a..fad2b3a 100644 --- a/lib/xesite_markdown/src/lib.rs +++ b/lib/xesite_markdown/src/lib.rs @@ -167,6 +167,14 @@ pub fn render(inp: &str) -> Result<String> { el.replace(&xesite_templates::talk_warning().0, ContentType::Html); Ok(()) }), + element!("xeblog-video", |el| { + let path = el + .get_attribute("path") + .ok_or(Error::MissingElementAttribute("path".to_string()))?; + + el.replace(&xesite_templates::video(path).0, ContentType::Html); + Ok(()) + }), ], ..RewriteStrSettings::default() }, |
