Skip to content

Commit

Permalink
fix typo and path for shortcodes (#1009)
Browse files Browse the repository at this point in the history
* fix typo and path for shortcodes

* Update docs/advanced/components.mdx

Co-authored-by: John Otander <[email protected]>
  • Loading branch information
mohrash92 and johno authored Apr 13, 2020
1 parent e030ddc commit a2be43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ and then passed to the wrapper. This allows for the wrapper to use
those props automatically for handling things like adding an author
bio to the wrapped document.

## `makeShortcodes`
## `makeShortcode`

There is one other function added to the compiled output: `makeShortcodes`.
There is one other function added to the compiled output: `makeShortcode`.
This is added for [shortcode support](/blog/shortcodes). It’s used in order
to stub any components that aren’t directly imported so that there won’t be
any `ReferenceError`s. If they’re passed to the `MDXProvider`, the custom
Expand Down

0 comments on commit a2be43f

Please sign in to comment.