summaryrefslogtreecommitdiff
path: root/packages/integrations/react/client.js
diff options
context:
space:
mode:
authorGravatar Remco Haszing <remcohaszing@gmail.com> 2024-03-08 11:53:39 +0100
committerGravatar GitHub <noreply@github.com> 2024-03-08 10:53:39 +0000
commita31bbd7ff8f3ec62ee507f72d1d25140b82ffc18 (patch)
treeb5dfb4b5c7a264db74b4225b30248099ed485246 /packages/integrations/react/client.js
parent5a9528741fa98d017b269c7e4f013058028bdc5d (diff)
downloadastro-a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18.tar.gz
astro-a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18.tar.zst
astro-a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18.zip
fix(markdown): don’t generate mdast html nodes (#10104)
* fix(markdown): don’t generate mdast html nodes `html` nodes from mdast are converted to `raw` hast nodes. These nodes are then not processed by proper rehype plugins. Typically if a remark plugin generates `html` nodes, this indicates it should have actually been a rehype plugin. This changes the remark plugins that generate `html` nodes into rehype nodes. These were `remarkPrism` and `remarkShiki`. Closes #9909 * Apply suggestions from code review * refactor(mdx): move user defined rehype plugins after syntax highlighting * fix(mdx): fix issue in mdx rehype plugin ordering * docs: explain why html/raw nodes are avoided in changeset This also includes some hints on what users could do to upgrade of they rely on these nodes. * Fix MDX rehype plugin ordering * refactor(remark): restore remarkPrism and remarkShiki They aren’t used anymore, but removing would be a breaking change. * chore: mark deprecated * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/thirty-beds-smoke.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/react/client.js')
0 files changed, 0 insertions, 0 deletions