Comments (4)
Hey, thanks for your interest in MDXP!
I kinda lost track of this project (still use almost weekly to create presentations though), but I will get back to it soon and fix some annoying things I noticed!
Now for MDX Embed, I don't really think you need anything special, seeing as one of their examples literally is to include their components into MDX.
I did not test anything, but I guess you have 2 options:
- Add the MDX Embed components to the MDXProvider. You can do this with the
components
argument of Deck, which you can find in src/index.jsx, provided you used the webpack template. - Adding the components to the MDXProvider, simply means you do not need to import them into your MDX files. Unless they do something weird (eg. intialisation code) when importing the components, you should be able to import them straight in your MDX files as well:
import { CodePen } from 'mdx-embed';
# Slide 1
<CodePen />
---
Let me know if you have any other problems!
from mdxp.
I used MDX Embed np, here's the presentation: https://i-have-a-hammer.vercel.app/#/normal/0/0
Sauce: https://github.com/spences10/i-have-a-hammer/
from mdxp.
Thanks for sharing! Do you mind if I add it to the examples page ? 😇
from mdxp.
from mdxp.
Related Issues (8)
- Switch from Webpack to Turbopack or Vite
- Should I submit a PR? or should I fork? HOT 12
- Install error "create-webpack: command not found" HOT 7
- Support React 17 as a peer dependency HOT 1
- Code syntax highlighting HOT 2
- Feature Request: Use of external template HOT 1
- ERR_OSSL_EVP_UNSUPPORTED when using Node 17 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdxp.