unstale

npm / @astrojs/markdown-remark

@astrojs/markdown-remark

What changed in @astrojs/markdown-remark 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

3 breaking1 security8 deprecations4 new APIs and options2 performance3 behavior and defaults1 tooling3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@astrojs/markdown-remark 724 changes

Breaking changes 2

  • Dynamic values passed as <script> or <style> children are escaped instead of rendered raw; use set:html to opt back into raw rendering.

    7.3.1release notes

  • Markdown heading ID generation is updated, which may change the IDs generated for headings.

    7.0.0release notes

Security 1

  • Nested object and package metadata lookups now ignore prototype keys in content handling and project scaffolding.

    7.1.1release notes

Deprecations 8

  • The top-level option is deprecated; move it onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The top-level option is deprecated; move plugins onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The top-level option is deprecated; move plugins onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The top-level option is deprecated; move it onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The top-level option is deprecated; move it onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The rehypePlugins option on the MDX integration is deprecated; move it onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The remarkPlugins option on the MDX integration is deprecated; move it onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

  • The remarkRehype option on the MDX integration is deprecated; move it onto unified({...}) or your preferred plugin processor.

    7.2.0release notes

New APIs and options 4

  • Adds the recmaPlugins option for adding recma (estree/JSX) plugins to the MDX compiler.

    7.3.0release notes

  • Adds a configuration option for choosing an alternative Markdown processor; the default remains unified().

    7.2.0release notes

  • The smartypants property now accepts Smartypants options for fine-grained control over typography transformations.

    7.1.0release notes

  • Exposes the fileURL option so callers can specify the file URL used to resolve relative image paths.

    7.0.0release notes

Performance 2

  • Returns a cached highlighter based on Shiki options instead of always creating a new instance, improving performance for sites that heavily use Shiki and code.

    7.0.0release notes

  • Cached Shiki highlighter instances are reused across languages.

    7.0.0release notes

Behavior and default changes 3

  • YAML parsing now supports timestamps and merge keys, and YAML errors are formatted consistently across Astro, Markdown, MDX, and Markdoc.

    7.3.2release notes

  • The processor now compiles .mdx files itself; projects still need to install @astrojs/mdx to add MDX support.

    7.3.0release notes

  • The processor now compiles .mdx files itself; projects still need to install @astrojs/mdx to add MDX support.

    7.3.0release notes

Tooling 1

  • The timing report now includes measurements for Markdown processing and syntax highlighting.

    7.3.3release notes

Fixes and other changes 3

  • Fixes highlighting for code block languages ending in a symbol, such as c#, c++, and f#.

    7.3.2release notes

  • Fixes an unexpected error caused by using the Code component.

    7.0.0release notes

  • Fixes Prism-generated code blocks incorrectly including the is:raw attribute in the final output.

    7.0.0release notes

@astrojs/markdown-remark 61 changes

Breaking changes 1

  • HAST-only props are no longer directly converted into HTML attributes.

    6.3.10release notes