diff --git a/src/components/atoms/markdown/MarkdownCheckbox.tsx b/src/components/atoms/markdown/MarkdownCheckbox.tsx index 9a60aad114..fecc839d7a 100644 --- a/src/components/atoms/markdown/MarkdownCheckbox.tsx +++ b/src/components/atoms/markdown/MarkdownCheckbox.tsx @@ -30,7 +30,7 @@ const MarkdownCheckbox = ({ if (current === index) { const checked = /^(\s*>?)*\s*[+\-*] \[x]/i.test(matches[0]) lines[lineIndex] = checked - ? line.replace('[x]', '[ ]') + ? line.replace(/\[x\]/i, '[ ]') : line.replace('[ ]', '[x]') // Bail out early since we're done