Add documentation for CodeBlock to describe className prop #7034
Labels
closed: wontfix
A fix will bring significant overhead, or is out of scope (for feature requests)
documentation
The issue is related to the documentation of Docusaurus
Have you read the Contributing Guidelines on issues?
Description
Looking through the source for the codeBlock I see that it's possible to add classes to the codeBlock.
This is useful as we'd like to add line numbering to our code blocks, but would also like the ability to selectively enable or disable it.
Ideally line numbering should be a top-level feature fo the CodeBlock, but as it is not currently we can do this with some fairly simple css:
This then allows me to have a code block:
And
I'm happy to help document this if you feel it's worthwhile having.
Self-service
The text was updated successfully, but these errors were encountered: