diff options
| author | Xe Iaso <me@christine.website> | 2022-10-12 02:39:57 +0000 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-10-12 02:39:57 +0000 |
| commit | 96caa7cccd8bedd7ebfffc9095c4f8fe44c9aa9d (patch) | |
| tree | c142d19c31ce35414eb68c32ce7518d1579a6b95 /lib/xesite_markdown | |
| parent | 49fdd5ea3af11b965826543c4ee2cb5911fd82d4 (diff) | |
| download | xesite-96caa7cccd8bedd7ebfffc9095c4f8fe44c9aa9d.tar.xz xesite-96caa7cccd8bedd7ebfffc9095c4f8fe44c9aa9d.zip | |
HLS support
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'lib/xesite_markdown')
| -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() }, |
