Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update inlineCode reference (#34817)
Howdy! MDX no longer has an `inlineCode` component in their MDXProvider ([source](https://mdxjs.com/table-of-components/)). They've migrated to a `pre` component for blocks of code and a `code` component for inline code snippets, so I've updated the example to reflect this. I validated this locally with these example components: ```jsx const Code = (props) => ( <code> {props.children} </code> ); const Pre = (props) => ( <pre> {props.children} </pre> ); const components = { pre: Pre, code: Code, ... }; ``` Applied to a test `mdx` file: ```md This is an `inline` example. ~~~ <p>Test code</p> ~~~ ``` Which generates the following html: ```html <p>This is an <code>inline</code> example.</p> <pre> <code><p>Test code</p></code> </pre> ``` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
- Loading branch information