Replies: 1 comment 4 replies
-
I don't understand what you mean, the screenshot above doesn't show line 1 and 3
What does "proper" mean? If that's not enough, please let me know what you need more. Also, when testing this, please remove all the related complexity: fetching code from GitHub is generic React knowledge, and is not directly related to
Coming in Docusaurus v3.8, and available in canary. https://docusaurus.io/docs/next/markdown-features/code-blocks#line-numbering -showLineNumbers={true}
+showLineNumbers={3} |
Beta Was this translation helpful? Give feedback.
-
I want to put range from GitHub file. This is my code:
This is how I use this component:
This is the output:
The line 1 and 3 are visible when you scroll.
What is the proper way of using CodeBlock? And also how to start the line numbers from something other than 1?
I use Docusaurus 3.6.1.
Beta Was this translation helpful? Give feedback.
All reactions