pchorus / gridsome-remark-katex

Gridsome remark support for math equations using remark-math and katex.
MIT License
6 stars 1 forks source link

Katex not rendering properly #3

Open sparxastronomy opened 3 years ago

sparxastronomy commented 3 years ago

While building the site, the math equations are not rendered properly. While checking the site through serve dist, the math equations are rendered like this
image

However, while using, gridsome develop, the equations are properly rendered: image

My site can be found here: https://nbody.netlify.app/

My json.config file is as follows:

{
  "name": "gridsome-docs",
  "private": true,
  "scripts": {
    "build": "gridsome build",
    "develop": "gridsome develop",
    "explore": "gridsome explore"
  },
  "devDependencies": {
    "@gridsome/plugin-google-analytics": "^0.1.0",
    "@gridsome/plugin-sitemap": "^0.2.3",
    "@gridsome/remark-prismjs": "^0.3.0",
    "@gridsome/source-filesystem": "^0.6.2",
    "@gridsome/transformer-remark": "^0.6.4",
    "fuse.js": "^6.4.6",
    "gridsome": "^0.7.23",
    "gridsome-plugin-tailwindcss": "^2.2.36",
    "node-sass": "^4.14.1",
    "prism-themes": "^1.3.0",
    "sass-loader": "^10.2.0",
    "tailwindcss": "^1.9.6",
    "vue-feather-icons": "^5.0.0"
  },
  "dependencies": {
    "gridsome-remark-katex": "^0.1.1"
  }
}