Skip to content

Instantly share code, notes, and snippets.

@haigopi
Last active February 2, 2020 03:31
Show Gist options
  • Save haigopi/441270eec97e8f6c150432878cde0ad9 to your computer and use it in GitHub Desktop.
Save haigopi/441270eec97e8f6c150432878cde0ad9 to your computer and use it in GitHub Desktop.
MDFiles Gatsby Plugin
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.md', '.mdx'],
gatsbyRemarkPlugins
}
}
const gatsbyRemarkPlugins = [
'gatsby-plugin-typegen',
{
resolve: 'gatsby-remark-smartypants',
options: {
dashes: 'oldschool'
}
},
{
resolve: 'gatsby-remark-prismjs',
options: {
classPrefix: 'language-',
inlineCodeMarker: {
tsx: 'tsx'
},
aliases: {}
}
},
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200
}
},
{
resolve: 'gatsby-remark-copy-linked-files',
options: {}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment