add: littleweb full

This commit is contained in:
trisua 2025-07-08 13:35:23 -04:00
parent 3fc0872867
commit d67e7c9c33
32 changed files with 1699 additions and 71 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "tetratto-shared"
version = "10.0.0"
version = "11.0.0"
edition = "2024"
authors.workspace = true
repository.workspace = true

View file

@ -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(