Skip to content

Commit 4fdaec0

Browse files
committed
fix code highlights regex
1 parent 40b6f59 commit 4fdaec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remark/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports.highlightCode = function highlightCode(code, language) {
3333

3434
return language === 'html'
3535
? highlighted.replace(
36-
/\*\*([^\]]+)\*\*/g,
36+
/\*\*(.*?)\*\*/g,
3737
(_, text) => `<span class="code-highlight bg-code-highlight">${text}</span>`
3838
)
3939
: highlighted

0 commit comments

Comments
 (0)