fix: do not include checkbox to link
This commit is contained in:
parent
c7c94581b6
commit
a866a72100
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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"[ ] ")?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue