fix: videos in posts
This commit is contained in:
parent
9bee739a45
commit
67492cf73f
3 changed files with 14 additions and 0 deletions
|
@ -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("-->", "<align class=\"right\">")
|
||||
.replace("->", "<align class=\"center\">")
|
||||
.replace("<-", "</align>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue