diff --git a/src/js/vendor/highlight.js b/src/js/vendor/highlight.js index bee0fdff..d9599693 100644 --- a/src/js/vendor/highlight.js +++ b/src/js/vendor/highlight.js @@ -133,7 +133,7 @@ // eat away line breaks or they would be doubled by the div hljs.addPlugin({ 'after:highlightElement': ({ el, result, text }) => { - result.value = result.value.replaceAll(/^(\s*)(.+?)\s*.*?\bmark-line\b.*?<\/span>\n/mg, '
$1$2
') + result.value = result.value.replaceAll(/^(\s*)(.+?)\s*.*?\bmark-line\b.*?<\/span>\n?/mg, '
$1$2
') } }); })()