jxnblk / mdx-deck

♠️ React MDX-based presentation decks
https://mdx-deck.jxnblk.com
MIT License
11.33k stars 604 forks source link

Make Steps the default behavior for lists resp. anything #673

Open danrot opened 4 years ago

danrot commented 4 years ago

I would like to let the Steps component to be used in every slide I make, without manually using it in the mdx file. Is there any possibility to do so?

I know that I could just copy over that part to all slides, but that does not feel very comfortable... I have chosen this library to build something in just markdown, and I don't want to start code in mdx files more than necessary. Having just everything appear like using steps would be a great was forward for this.

jxnblk commented 4 years ago

You can replace any markdown element with a custom component in MDX, see https://mdxjs.com/getting-started/#mdxprovider