add: littleweb full
This commit is contained in:
parent
3fc0872867
commit
d67e7c9c33
32 changed files with 1699 additions and 71 deletions
|
@ -8,6 +8,7 @@ pub fn render_markdown(input: &str) -> String {
|
|||
compile: CompileOptions {
|
||||
allow_any_img_src: false,
|
||||
allow_dangerous_html: true,
|
||||
allow_dangerous_protocol: true,
|
||||
gfm_task_list_item_checkable: false,
|
||||
gfm_tagfilter: false,
|
||||
..Default::default()
|
||||
|
@ -48,6 +49,7 @@ pub fn render_markdown(input: &str) -> String {
|
|||
])
|
||||
.rm_tags(&["script", "style", "link", "canvas"])
|
||||
.add_tag_attributes("a", &["href", "target"])
|
||||
.add_url_schemes(&["atto"])
|
||||
.clean(&html)
|
||||
.to_string()
|
||||
.replace(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue