Skip to content

Commit

Permalink
also don't disable checked boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Sep 5, 2024
1 parent 0cadaa8 commit 960f30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mark.R
Original file line number Diff line number Diff line change
Expand Up @@ -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('(<li><input type="checkbox" )disabled="" (/>)', '\\1\\2', ret)
ret = gsub('(<li><input type="checkbox" [^>]*?)disabled="" (/>)', '\\1\\2', ret)
if (has_math) {
ret = gsub(sprintf('<code>%s(.{5,}?)%s</code>', id, id), '\\1', ret)
# `\(math\)` may fail to render to <code>\(math\)</code> when backticks
Expand Down

0 comments on commit 960f30f

Please sign in to comment.