CHANGELOG
-
feat: export remark-github-alerts plugin.
import remarkGithubAlerts from "mdx-svelte/unified/remark-github-alerts"
Breaking:
- Unified transformer options
<core-plugin>.plugins.before|afterTS types changed. Check the updated docs. - Changed shiki default theme to
slack-dark. Matches vsCode “Dark Modern” theme. UnifiedTransformerOptionsno longer exported.
Features:
- Added new “remark-breaks” plugin. Enabled by default.
- Added new
remarkPluginsandrehypePluginsoptions to the Unified transformer. This makes it easy to add custom plugins instead of using the<core-plugin>.plugins.before|afterapi. - Unified transformer options
<core-plugin>.plugins.before|afternow correctly distinguishes between Remark and Rehype plugins. Prevents accidentally adding a Remark plugin after a Rehype plugin or adding a Rehype plugin before a Remark plugin.
Breaking Changes
Section titled “Breaking Changes”- Switched from rehype-pretty-code to @shikijs/rehype.
Non Breaking Changes
Section titled “Non Breaking Changes”- Moved
"hast-util-to-html"to"dependencies".