Coder Social home page Coder Social logo

Hey! This looks pretty sweet! about mdxp HOT 4 CLOSED

0phoff avatar 0phoff commented on August 25, 2024 1
Hey! This looks pretty sweet!

from mdxp.

Comments (4)

0phoff avatar 0phoff commented on August 25, 2024 2

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:

  1. 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.
  2. 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.

spences10 avatar spences10 commented on August 25, 2024 1

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.

0phoff avatar 0phoff commented on August 25, 2024 1

Thanks for sharing! Do you mind if I add it to the examples page ? 😇

from mdxp.

spences10 avatar spences10 commented on August 25, 2024 1

from mdxp.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.