aboutsummaryrefslogtreecommitdiffstats
path: root/src/to_html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/to_html.rs')
-rw-r--r--src/to_html.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/to_html.rs b/src/to_html.rs
index 1892ba1..edd397d 100644
--- a/src/to_html.rs
+++ b/src/to_html.rs
@@ -601,7 +601,10 @@ fn on_enter_gfm_table_row(context: &mut CompileContext) {
/// Handle [`Enter`][Kind::Enter]:[`GfmTaskListItemCheck`][Name::GfmTaskListItemCheck].
fn on_enter_gfm_task_list_item_check(context: &mut CompileContext) {
if !context.image_alt_inside {
- context.push("<input type=\"checkbox\" disabled=\"\" ");
+ context.push("<input type=\"checkbox\" ");
+ if !context.options.gfm_task_list_item_checkable {
+ context.push("disabled=\"\" ");
+ }
}
}