docusaurus/website/docs/guides/markdown-features
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
..
_markdown-partial-example.mdx feat: details/summary theme / MDX component (#5216) 2021-07-27 18:45:12 +02:00
markdown-features-admonitions.mdx fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00
markdown-features-assets.mdx refactor: recommend using data-theme without html element selector (#6668) 2022-02-14 10:23:42 +08:00
markdown-features-code-blocks.mdx refactor: recommend using data-theme without html element selector (#6668) 2022-02-14 10:23:42 +08:00
markdown-features-head-metadata.mdx docs: audit grammar issues (#6203) 2021-12-27 19:34:04 +08:00
markdown-features-headings.mdx docs: audit grammar issues (#6203) 2021-12-27 19:34:04 +08:00
markdown-features-inline-toc.mdx refactor: make MDX export a flat TOC list instead of tree (#6729) 2022-02-23 15:12:04 +01:00
markdown-features-intro.mdx fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00
markdown-features-math-equations.mdx fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00
markdown-features-plugins.mdx fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00
markdown-features-react.mdx docs: simplify imported code blocks syntax (#6830) 2022-03-04 07:09:16 +08:00
markdown-features-react.module.css chore: upgrade lint-staged and globs (#6369) 2022-01-15 16:33:09 +08:00
markdown-features-tabs-styles.module.css chore: enable stylelint standard config (#6442) 2022-01-22 21:26:35 +08:00
markdown-features-tabs.mdx fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00