Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 776 Bytes

angry-pots-boil.md

File metadata and controls

34 lines (28 loc) · 776 Bytes
astro @astrojs/mdx @astrojs/markdown-remark
minor
minor
minor

Introduce a smartypants flag to opt-out of Astro's default SmartyPants plugin.

{
  markdown: {
    smartypants: false,
  }
}

Migration

You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the extendDefaultPlugins option. This has now been split into 2 flags to disable each plugin individually:

  • markdown.gfm to disable GitHub-Flavored Markdown
  • markdown.smartypants to disable SmartyPants
// astro.config.mjs
import { defineConfig } from 'astro/config';

export default defineConfig({
  markdown: {
-   extendDefaultPlugins: false,
+   smartypants: false,
+   gfm: false,
  }
});