gatsby-project-kb icon indicating copy to clipboard operation
gatsby-project-kb copied to clipboard

Latex Support

Open Adam-Al-Rahman opened this issue 2 years ago • 4 comments

Latex Support

How to add the latex support. I tried the following but this isn't working

{
      resolve: 'gatsby-theme-kb',
      options: {
        contentPath: path.resolve(__dirname, 'content'),
        rootNotes : 'readme',
        wikiLinkLabelTemplate: '[[{{ title }}]]',
        getPluginMdx(defaultPluginMdx) {
          defaultPluginMdx.options.gatsbyRemarkPlugins.push({
            resolve: 'gatsby-remark-prismjs',
            options: {
              noInlineHighlight: true,
            },
            resolve: `gatsby-remark-katex`,
            options: {
              // Add any KaTeX options from https://github.com/KaTeX/KaTeX/blob/master/docs/options.md here
              strict: `ignore`
            },
          })
          return defaultPluginMdx
        },
      },
    },

As I'm new to gatsby and gatsby shadowing. Please correct me, where am I wrong. Thanks.

Adam-Al-Rahman avatar Oct 02 '21 09:10 Adam-Al-Rahman