-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: allow to customize markdown transformers #1767
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
Conversation
✅ Deploy Preview for slidev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
| const replaced = code.replace('if (_rerender_only)', 'if (false)') | ||
| if (replaced !== code) | ||
| return replaced | ||
| return code.replace('if (_rerender_only)', 'if (false)') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this get removed? In Vite plugin returning bullish value will bailout the transform process and will be more performant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the module has been tested to be a slide module, it is almost impossible to not perform the replacement
Based on #1761. This PR will be much smaller after merging that.
close #1503,close #1626.
Usage docs