add: pull track duration
This commit is contained in:
parent
f10384ff39
commit
498884291e
4 changed files with 53 additions and 11 deletions
|
@ -11,7 +11,7 @@ pub fn render_markdown(input: &str) -> String {
|
|||
options.extension.strikethrough = true;
|
||||
options.extension.autolink = true;
|
||||
options.extension.header_ids = Option::Some(String::new());
|
||||
options.extension.tagfilter = true;
|
||||
// options.extension.tagfilter = true;
|
||||
options.render.unsafe_ = true;
|
||||
// options.render.escape = true;
|
||||
options.parse.smart = false;
|
||||
|
@ -32,6 +32,10 @@ pub fn render_markdown(input: &str) -> String {
|
|||
|
||||
Builder::default()
|
||||
.generic_attributes(allowed_attributes)
|
||||
.add_tags(&[
|
||||
"video", "source", "img", "b", "span", "p", "i", "strong", "em",
|
||||
])
|
||||
.rm_tags(&["script", "style", "link", "canvas"])
|
||||
.clean(&html)
|
||||
.to_string()
|
||||
.replace("src=\"", "loading=\"lazy\" src=\"/api/v1/util/proxy?url=")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue