fix: videos in posts

This commit is contained in:
trisua 2025-04-26 22:34:58 -04:00
parent 9bee739a45
commit 67492cf73f
3 changed files with 14 additions and 0 deletions

View file

@ -40,6 +40,7 @@ pub fn render_markdown(input: &str) -> String {
.clean(&html)
.to_string()
.replace("src=\"", "loading=\"lazy\" src=\"/api/v1/util/proxy?url=")
.replace("<video loading=", "<video controls loading=")
.replace("--&gt;", "<align class=\"right\">")
.replace("-&gt;", "<align class=\"center\">")
.replace("&lt;-", "</align>")