We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a92114e commit ec1c1f5Copy full SHA for ec1c1f5
src/js/vendor/highlight.js
@@ -133,7 +133,7 @@
133
// eat away line breaks or they would be doubled by the div
134
hljs.addPlugin({
135
'after:highlightElement': ({ el, result, text }) => {
136
- result.value = result.value.replaceAll(/^(\s*)(.+?)\s*<span class="hljs-comment">.*?\bmark-line\b.*?<\/span>\n/mg, '<div class="highlight-line">$1$2</div>')
+ result.value = result.value.replaceAll(/^(\s*)(.+?)\s*<span class="hljs-comment">.*?\bmark-line\b.*?<\/span>\n?/mg, '<div class="highlight-line">$1$2</div>')
137
}
138
});
139
})()
0 commit comments