Repository navigation
feat: callouts - #841
Merged
Merged
feat: callouts#841
Conversation
Comment on lines
+36
to
+48
| const useMDXComponents = () => ({ | ||
| ...Components, | ||
| }); | ||
|
|
||
| export const reactProcessor = (opts = {}) => { | ||
| return createProcessor(opts); | ||
| return createProcessor({ remarkPlugins: [calloutTransformer], ...opts }); | ||
| }; | ||
|
|
||
| export const react = (text: string, opts = {}) => { | ||
| const code = compileSync(text, { | ||
| development: true, | ||
| outputFormat: 'function-body', | ||
| providerImportSource: '@mdx-js/react', | ||
| remarkPlugins: [calloutTransformer], |
Contributor
Author
There was a problem hiding this comment.
These are the only changes required for getting callouts to work!
kellyjosephprice
marked this pull request as ready for review
March 20, 2024 19:02
trishaprile
reviewed
Mar 21, 2024
trishaprile
left a comment
Contributor
There was a problem hiding this comment.
yay love the demo refactor and mdx callouts!
although when I try to manually type one out with < the page crashes
Contributor
Author
Hey, nobodies perfect, ok. I added some error boundaries. |
Collaborator
This PR was released!🚀 Changes included in v6.75.0-beta.13 |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🧰 Changes
Gets markdown callouts working!
For testing, I did a big refactor on the demo(?) app. I replaced all the changing params stuff with
react-router-dom, and updated it to use typescript!🧬 QA & Testing