From 960f30f8672c49d071bdb4fa906bc782a72e5a16 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 5 Sep 2024 12:03:10 -0500 Subject: [PATCH] also don't disable checked boxes --- R/mark.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/mark.R b/R/mark.R index 98e152d..b95861f 100644 --- a/R/mark.R +++ b/R/mark.R @@ -209,7 +209,7 @@ mark = function(input, output = NULL, text = NULL, options = NULL, meta = list() if (format == 'html') { # don't disable check boxes - ret = gsub('(
  • )', '\\1\\2', ret) + ret = gsub('(
  • ]*?)disabled="" (/>)', '\\1\\2', ret) if (has_math) { ret = gsub(sprintf('%s(.{5,}?)%s', id, id), '\\1', ret) # `\(math\)` may fail to render to \(math\) when backticks