JavaScript syntax highlighter with language auto-detection and zero dependencies.
BSD 3-Clause "New" or "Revised" License
23.3k
stars
3.52k
forks
source link
R — The first number is not getting the hljs-number class #3976
Open
psiaux opened 5 months ago
Describe the issue When the number is next to the <- operator, it doesn't get highlighted. It isn't getting the hljs-number class.![HightlightJSRProblem](https://github.com/highlightjs/highlight.js/assets/149983825/756a085c-76a2-4ad8-bcf7-40ba27818139)
Which language seems to have the issue? R.
Are you using
highlight
orhighlightAuto
? highlight ...Sample Code to Reproduce
The
content
prop is coming from an MDX file. I'm using Next.js (React) andnext-mdx-remote/rsc
, using thecompileMDX
function.Expected behavior All numbers should be highlighted and have the hljs-number class.