1.0.4 • Published 5 years ago
gatsby-plugin-mdx-prismjs v1.0.4
Gatsby Plugin MDX Prismjs
An MDX component that replaces gatsby-remark-prismjs for people who are porting from gatsby-transformer-remark
Getting Started
yarn add gatsby-plugin-mdx-prismjs
modules.exports = {
plugins: [
{
resolve: `gatsby-mdx`,
options: {
plugins: [`gatsby-plugin-mdx-prismjs`]
}
}
]
};
Options
gatsby-plugin-mdx-prismjs
accepts all of the options that
gatsby-remark-prism
does to make it easy to switch.
modules.exports = {
plugins: [
{
resolve: `gatsby-mdx`,
options: {
plugins: [
{
resolve: `gatsby-plugin-mdx-prismjs`,
options: {
classPrefix: "language-",
inlineCodeMarker: null,
aliases: {},
showLineNumbers: false,
noInlineHighlight: false
}
}
]
}
}
]
};