We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the issue When the number is next to the <- operator, it doesn't get highlighted. It isn't getting the hljs-number class.
Which language seems to have the issue? R.
Are you using highlight or highlightAuto? highlight ...
highlight
highlightAuto
Sample Code to Reproduce
import hljs from 'highlight.js/lib/core' import r from 'highlight.js/lib/languages/r' import 'highlight.js/styles/agate.css' hljs.registerLanguage('r', r) export default function RCode({ content }: { content: string }) { const highlightedCode = hljs .highlight(content, { language: 'r' }) .value return <pre className={className}> <code dangerouslySetInnerHTML={{ __html: highlightedCode }} /> </pre> }
The content prop is coming from an MDX file. I'm using Next.js (React) and next-mdx-remote/rsc, using the compileMDX function.
content
next-mdx-remote/rsc
compileMDX
Expected behavior All numbers should be highlighted and have the hljs-number class.
The text was updated successfully, but these errors were encountered:
Please provide actual R source, not just a graphic.
Sorry, something went wrong.
No branches or pull requests
Describe the issue
When the number is next to the <- operator, it doesn't get highlighted. It isn't getting the hljs-number class.
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.
The text was updated successfully, but these errors were encountered: