-
Notifications
You must be signed in to change notification settings - Fork 690
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
Using SlideLayout API with MDX slides #1283
Comments
Yeah it's something we've talked about internally but it almost necessitates introducing some new custom syntax into Markdown. Happy to think through some ideas here. We sort of already do that with slide breaks, so it's not without precedence. |
Hi Carlos. I would be happy with some kind of "json decorators" for slide breaks like below.
Or frontmatter syntax between two delimiters.
The complex part with markdown is column/grid based layouts maybe as it would require some other kind of delimiters. |
I like the JSON decorators idea, I think the second one might be a bit trickier to get right in every instance to ensure it doesn't get thought of just as a slide. |
We've started to integrate some of the slide layouts using the Markdown decorators: Not released yet, but you can see where this API is likely heading. |
That is awesome, thank you so much for taking my feedback into consideration. |
@ricovitch Yeah, we've released discretely the first part of it, and when we get more types implemented we'll update the docs. Feel free to kick the tires and let us know if you see anything. |
Check out our docs which show how to leverage slide layouts in markdown → https://formidable.com/open-source/spectacle/docs/md-slide-layouts We plan to add more types in the future as well! |
Awesome thank you ! |
Question
Is it possible to use Slide Layouts when writing slides in MDX ?
Background Info/Attempts
Not sure what's the best approach to manage different slide layouts with MDX.
The documented Slide Layouts looks to fit very well my needs, but it does not seem to be available when writing slides in MD/MDX, or I may be missing something.
I imagine another approach could be to use some custom html/css or react component, but we loose a bit the simplicity of markdown content.
The text was updated successfully, but these errors were encountered: