docusaurus/website/docs/guides
nate contino 5f1edd5ac8
docs: simplify imported code blocks syntax (#6830)
* refactor: simplify imported code blocks

- Use `language=<lang>` prop instead of "className="language-<lang>" for imported code blocks

I've been using this in my personal projects ([example](https://raw.githubusercontent.com/nathan-contino-mongo/docusaurus-realm/9a2ebb6a43bbbd7b38899fcc86c903dcc1f61283/docs/sdk/kotlin/migrate-from-java-sdk.mdx)) since it is less verbose.
If this interface is somehow less stable than the `className` prop, feel free to close this. But if both will work going forward
we should probably recommend the simpler of the two.

* Update markdown-features-react.mdx
2022-03-04 07:09:16 +08:00
..
docs docs: add doc for generated-index keyword/image metadata (#6708) 2022-02-17 14:24:13 +01:00
markdown-features docs: simplify imported code blocks syntax (#6830) 2022-03-04 07:09:16 +08:00
creating-pages.md docs: add advanced guides (#6296) 2022-01-25 11:29:18 +08:00
whats-next.md docs: add advanced guides (#6296) 2022-01-25 11:29:18 +08:00