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