fix: videos in posts
This commit is contained in:
parent
9bee739a45
commit
67492cf73f
3 changed files with 14 additions and 0 deletions
|
@ -148,6 +148,11 @@ article {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
video {
|
||||||
|
max-width: 100%;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
}
|
||||||
|
|
||||||
/* typo */
|
/* typo */
|
||||||
p {
|
p {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
|
@ -35,6 +35,10 @@ config.connections.spotify_client_id %}
|
||||||
|
|
||||||
document.getElementById("status").innerHTML =
|
document.getElementById("status").innerHTML =
|
||||||
`<b>${message}.</b> You can now close this tab.`;
|
`<b>${message}.</b> You can now close this tab.`;
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = "/settings#/connections";
|
||||||
|
}, 500);
|
||||||
}, 150);
|
}, 150);
|
||||||
</script>
|
</script>
|
||||||
{% elif connection_type == "LastFm" and user and user.connections.LastFm and
|
{% elif connection_type == "LastFm" and user and user.connections.LastFm and
|
||||||
|
@ -60,6 +64,10 @@ config.connections.last_fm_key %}
|
||||||
|
|
||||||
document.getElementById("status").innerHTML =
|
document.getElementById("status").innerHTML =
|
||||||
`<b>${message}.</b> You can now close this tab.`;
|
`<b>${message}.</b> You can now close this tab.`;
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = "/settings#/connections";
|
||||||
|
}, 500);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
</script>
|
</script>
|
||||||
{% endif %} {% endblock %}
|
{% endif %} {% endblock %}
|
||||||
|
|
|
@ -40,6 +40,7 @@ pub fn render_markdown(input: &str) -> String {
|
||||||
.clean(&html)
|
.clean(&html)
|
||||||
.to_string()
|
.to_string()
|
||||||
.replace("src=\"", "loading=\"lazy\" src=\"/api/v1/util/proxy?url=")
|
.replace("src=\"", "loading=\"lazy\" src=\"/api/v1/util/proxy?url=")
|
||||||
|
.replace("<video loading=", "<video controls loading=")
|
||||||
.replace("-->", "<align class=\"right\">")
|
.replace("-->", "<align class=\"right\">")
|
||||||
.replace("->", "<align class=\"center\">")
|
.replace("->", "<align class=\"center\">")
|
||||||
.replace("<-", "</align>")
|
.replace("<-", "</align>")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue