CHANGELOG
- fix:
EXTENSIONSTypeScriptreadonlyerror.
- feat: wrap component styles in
@layer remark-github-alerts { ... }.
- fix: tests where failing due to a valibot schema issue.
Changes to Unified Remark-GitHub-Alerts plugin:
- fix:
border-inline-starttoborder-left. - feat: border color from
#888tocurrentColor. supports light and dark mode. - feat: add note specific color to
--remark-github-alerts. - chore: less code and overall better code quality. same styles in 30 lines less CSS.
-
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".