mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
93e633922c
* feat: add smartypants flag * test: smartypants in markdown and mdx * docs: Smartypants -> SmartyPants * chore: changeset * chore: update changeset with 1.0 -> 2.0 in mind * chore: bump to minor change
776 B
776 B
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 Markdownmarkdown.smartypants
to disable SmartyPants
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
markdown: {
- extendDefaultPlugins: false,
+ smartypants: false,
+ gfm: false,
}
});