GithubHelp home page GithubHelp logo

Comments (6)

flashshare avatar flashshare commented on May 24, 2024 2

@hikerpig Great! This theme is indeed good. I hope it will be popular soon. Not only for foam users, but also for Obsidian users

from foam-template-gatsby-kb.

flashshare avatar flashshare commented on May 24, 2024 1

@hikerpig
These plugins work for me

{
  resolve: "gatsby-plugin-mdx",
  options: {
    remarkPlugins: [require("remark-math")],
    rehypePlugins: [require("rehype-katex")],
  },
},

plugins version

"rehype-katex": "^5.0.0",
"remark": "^12.0.1",
"remark-math": "^3.0.1"

from foam-template-gatsby-kb.

hikerpig avatar hikerpig commented on May 24, 2024

@timothywangdev At first I think it's pretty easy to add something to defaultPluginMdx just like other gatsby remark plugins in _layouts/gatsby-config.js. But then I found there is an upstream problem of gatsby-remark-katex Doesn’t work with gatsby-plugin-mdx.

I tried some of the configs posted in the answers and no luck 😞. Maybe we can track the issue and wait for the day that we can solve this simply by upgrading some dependencies.

from foam-template-gatsby-kb.

flashshare avatar flashshare commented on May 24, 2024

Any updates for gatsby-remark-katex?
Maybe we can try with remark-math and rehype-katex

from foam-template-gatsby-kb.

hikerpig avatar hikerpig commented on May 24, 2024

@flashshare I don't know if things have changed since last time I checked. Maybe I will find sometime to look at it this week.

from foam-template-gatsby-kb.

hikerpig avatar hikerpig commented on May 24, 2024

@timothywangdev I've pushed a new commit to support math notation.
The demo can be viewed in https://hikerpig.github.io/foam-template-gatsby-kb/math

from foam-template-gatsby-kb.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.