Skip to content

prettier/prettier-plugin-mdx1

Repository files navigation

@prettier/plugin-mdx1

Npm Version MIT License

Prettier plugin for MDX1.

Important

This plugin extracted for MDX1 users from prettier v3.7.

Please migrate to MDX3, and use the builtin parser if possible.

This plugin only change if bugs found, won't add any new features.

Install

yarn add --dev --exact prettier @prettier/plugin-mdx1

Usage

Create or modify your prettier configuration file to use the plugin:

// prettier.config.mjs
import * as prettierPluginMdx1 from "@prettier/plugin-mdx1";

/**
 * @see https://prettier.io/docs/configuration
 * @type {import("prettier").Config}
 */
const config = {
  plugins: [prettierPluginMdx1],
};

export default config;