remark icon indicating copy to clipboard operation
remark copied to clipboard

highlightSpans behaves incorrectly with backticks as the first character of a line

Open nrinaudo opened this issue 5 years ago • 0 comments

I sometimes want to highlight the first word of a line of code. This, unfortunately, appears to be broken (I've tried on 0.15.0): remark.js seems to not treat backticks, when they are the first character of a line, as a "highlight span", and the resulting output will contain both backticks, and no highlighting.

I've added a screenshot for clarity: remarkjs-backtick

nrinaudo avatar Jan 22 '20 20:01 nrinaudo