Skip to content
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

Pluggable Markdown transformers #1626

Closed
brendenehlers opened this issue May 29, 2024 · 1 comment · Fixed by #1767
Closed

Pluggable Markdown transformers #1626

brendenehlers opened this issue May 29, 2024 · 1 comment · Fixed by #1767
Labels

Comments

@brendenehlers
Copy link

Is your feature request related to a problem? Please describe.
Looking for a way to add custom Markdown transformers.

Referenced in this stale issue: #892

Describe the solution you'd like
I'd like to be able to define a custom Markdown transformer that is used like the magic-move or code block transformers, using the APIs already provided in this file:
https://github.com/slidevjs/slidev/blob/main/packages/slidev/node/vite/markdown.ts

Describe alternatives you've considered
The solution for !892 was to use custom Vite plugins, but that seems to be a bit overkill if the goal is just to implement a new feature in the Markdown slides.

I've also written a proof-of-concept in a fork, which shows that what I'm trying to do is possible, if the transformers are pluggable. Link here: brendenehlers@853f453

Please let me know if I missed an issue that already address this or if there's a page in the documentation on how to do this!

@KermanX
Copy link
Member

KermanX commented Jul 22, 2024

Completed via #1767.

@KermanX KermanX closed this as completed Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants