fix: do not include checkbox to link

This commit is contained in:
DarkCat09 2024-11-21 16:46:52 +04:00
parent c7c94581b6
commit a866a72100
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
2 changed files with 2 additions and 4 deletions

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"[ ] ")?;
} }
} }