-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨V1 #451
Conversation
* it works * commit to be removed: my-site-2 * remove mdxtag for layout * [remove this] more my-site examples * remove * merge-conflict * snapshots * Remove my-site-2 * Clean up create element code * Fix tests * Fix props handling, remove mdx pragma from JSX output * Update pragma implementation in loader and parcel plugin * Update runtime to properly provide components for mdx pragma
If a function is passed to the theme provider it is invoked with the out context's components. This allows users to opt in to merging those components. Related #410
* Implement support for Some.Component style JSX blocks * Add failing test for string interpolation * Add failing test for js functions as props * Add failing test for js functions as props with returns * Make value parsing for JSX props more flexible * Don't lint fixtures file * Add nested object props fixture * Add another fixture for randomly placed brackets * Add link shortcut to fixture * Remove object props since it is a subset of js props * Begin implementing core remark-mdx usage * Replace MDXTag with custom pragma (#401) * it works * commit to be removed: my-site-2 * remove mdxtag for layout * [remove this] more my-site examples * remove * merge-conflict * snapshots * Remove my-site-2 * Clean up create element code * Fix tests * Fix props handling, remove mdx pragma from JSX output * Update pragma implementation in loader and parcel plugin * Update runtime to properly provide components for mdx pragma * Allow for merging of components passed to context with a function (#411) If a function is passed to the theme provider it is invoked with the out context's components. This allows users to opt in to merging those components. Related #410 * feat: Convert withMDXComponents to use hooks (#417) * Continue working on integrating remark-mdx * Ensure proper remark-mdx is used for workspaces
* Add useMDXComponents hook * Update snapshot
* Automatically merge outer context for components in the provider Closes #410 * Fix failing test * Improve test name
* Convert MDXContent to a function component * Move Layout definition outside of component * Rename Layout to MDXLayout and don't initialize it if layout is not set * Fix snapshot
This pull request is automatically deployed with Now. |
This is incredibly appreciated, guys! You're all doing excellent work! |
Closes GH-450.
Implement basic Vue support
Co-Authored-By: johno <johnotander@gmail.com>
* Move to babel v7 * Add microbundle
* Add basic gatsby setup for docs * Remove x0 from root package * Add Head component * Update to latest rebass * Add docs layout component * Reorganize UI components in docs * Remove _app.js component from docs * Add basic styles, header, and pagination to docs * Add basic responsive menu styles to docs * Adjust styles in docs * Adjust getting started page * Update now config for new docs setup * Move to babel v7 (#494) * Move to babel v7 * Add microbundle * Fix loader test * Update live editor for v1, make docs a workspace * Refactor docs header and fix code editor styles * Use scoped styles in docs sidebar and pagination * Adjust edit link url * Add basic gatsby setup for docs * Remove x0 from root package * Add Head component * Update to latest rebass * Add docs layout component * Reorganize UI components in docs * Remove _app.js component from docs * Add basic styles, header, and pagination to docs * Add basic responsive menu styles to docs * Adjust styles in docs * Adjust getting started page * Update now config for new docs setup * Fix loader test * Update live editor for v1, make docs a workspace * Refactor docs header and fix code editor styles * Use scoped styles in docs sidebar and pagination * Adjust edit link url * Fix eslint ignore config
I'm going to go ahead and merge this since we're ready for a release candidate 🕺. There are still some tasks to complete for an official v1 release next week but we can address those as PRs back into master now. |
Thanks for the good work 😄 |
🕺🕺🕺🕺We're getting pretty close 🕺🕺🕺🕺
Here's an overview on what has been completed for v1 and what's left. If anyone wants to take something on feel free to give me a shout. I'll be spending most of today on docs and implementing Vue support.
cc/ @wooorm @ChristopherBiscardi @silvenon @timneutkens
Completed
Some of this has already landed in master (if it wasn't a breaking change).
<>
) syntax Improve parsing for JSX blocks (including inline) #396 Allow newlines in props when parsing JSX #404@mdx-js/tag
to React Hooks Migrate @mdx-js/tag to hooks #417 Add useMDXComponents hook #440Todo
@mdx-js/tag
to@mdx-js/react
Rename @mdx-js/tag to @mdx-js/react #487@mdx-js/react
changes Update docs for new react package name #490<>
) add to specificationFix block parsing, empty new lines in code blocks don't work 🏗 Improve JSX block parsing #195remarkPlugins
andrehypePlugins
naming conventions RenamemdPlugins
andhastPlugins
toremarkPlugins
andrehypePlugins
#465Nice to haves