Compare commits

..

2 commits

Author SHA1 Message Date
3643ba0dfd
feat: optimizations for release profile 2024-11-21 16:47:36 +04:00
a866a72100
fix: do not include checkbox to link 2024-11-21 16:46:52 +04:00
3 changed files with 7 additions and 4 deletions

View file

@ -7,3 +7,8 @@ edition = "2021"
lightningcss = { version = "1.0.0-alpha.59", default-features = false, features = ["grid"] } lightningcss = { version = "1.0.0-alpha.59", default-features = false, features = ["grid"] }
pulldown-cmark = { version = "0.12.2", default-features = false, features = ["pulldown-cmark-escape"] } pulldown-cmark = { version = "0.12.2", default-features = false, features = ["pulldown-cmark-escape"] }
walkdir = "2.5.0" walkdir = "2.5.0"
[profile.release]
codegen-units = 1
lto = "fat"
panic = "abort"

View file

@ -22,8 +22,6 @@ mydata: 123
- [ ] Todo - [ ] Todo
- [ ] Won't fix - [ ] Won't fix
[[x] Task inside link](https://dc09.ru)
> [!WARNING] > [!WARNING]
> >
> Some important quote > Some important quote

View file

@ -298,10 +298,10 @@ pub fn compile_markdown(
TaskListMarker(done) => { TaskListMarker(done) => {
if done { if done {
html.write_all(b"<input type=checkbox checked disabled>")?; html.write_all(b"<input type=checkbox checked disabled>")?;
write_inline(&mut gmi, state, "[x] ", &mut links)?; gmi.write_all(b"[x] ")?;
} else { } else {
html.write_all(b"<input type=checkbox disabled>")?; html.write_all(b"<input type=checkbox disabled>")?;
write_inline(&mut gmi, state, "[ ] ", &mut links)?; gmi.write_all(b"[ ] ")?;
} }
} }