You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no support for highlighting inline code (similarly to rehype-pretty-code). It would be nice to be able to highlight something like console.log('coucou').
Suggested solution
Apply highlighting when there is something like `console.log('coucou'){:js}`
In my own parser, I parse a prefix that works similar to normal triple slash code blocks: `js const a = 'a'`
And similarly these can be tagged with a filename: `filename.js const a = 'a'`
The presence of the space is used to determine if it needs highlighting, so this wouldn't be highlighted for example: `js`
The idea was to bring familiarity with how it's already done in code blocks. However, this does unfortunately look weird in raw markdown since it's embedded in the code snippet.
Clear and concise description of the problem
There is no support for highlighting inline code (similarly to rehype-pretty-code). It would be nice to be able to highlight something like
console.log('coucou')
.Suggested solution
Apply highlighting when there is something like `console.log('coucou'){:js}`
Alternative
No response
Additional context
No response
Validations
Contributes
The text was updated successfully, but these errors were encountered: