github fuma-nama/fumadocs fumadocs-ui@12.1.0

latest releases: fumadocs-mdx@11.9.1, fumadocs-openapi@9.3.8, create-fumadocs-app@15.7.11...
15 months ago

Minor Changes

  • 0a377a9: Pass the icon prop to code blocks as HTML instead of MDX attribute.

    why: Only MDX flow elements support attributes with JSX value, like:

    <Pre icon={<svg />}>...</Pre>

    As Shiki outputs hast elements, we have to convert the output of Shiki to a MDX flow element so that we can pass the icon property.

    Now, rehype-code passes a HTML string instead of JSX, and render it with dangerouslySetInnerHTML:

    <Pre icon="<svg />">...</Pre>

    migrate: Not needed, it should work seamlessly.

Patch Changes

  • 0a377a9: Close sidebar on collapse
  • 5f86faa: Improve multi-line code blocks
  • Updated dependencies [0a377a9]
  • Updated dependencies [0a377a9]
    • fumadocs-core@12.1.0

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.