Support line highlighting for Docusaurus via code-line-numbers
#7199
Closed
eitsupi
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Thanks for the idea. I think this is easy enough to implement. I'll have a look. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It would be great if the following line highlighting that Quarto supports in revealjs format also worked in Docusaurus.
https://quarto.org/docs/presentations/revealjs/index.html#line-highlighting
The syntax on Docusaurus is like this:
https://docusaurus.io/docs/markdown-features/code-blocks#highlighting-with-metadata-string
The problem here is that
revealjs
is hard-coded in the following part where this conversion is performed, and other formats cannot be added later.It would be great if third party formats could enable this feature.
quarto-cli/src/resources/filters/quarto-pre/line-numbers.lua
Lines 13 to 16 in 880565f
Beta Was this translation helpful? Give feedback.
All reactions