Comments (6)
@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.
@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.
@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.
Any updates for gatsby-remark-katex?
Maybe we can try with remark-math and rehype-katex
from foam-template-gatsby-kb.
@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.
@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)
- Links reload page since changes from 02/21 HOT 17
- Feature Request: deploy to github pages
- Code blocks and syntax highlight HOT 19
- Documents other than notes displaying on the table of contents? HOT 2
- fails to render relative wikilinks HOT 6
- re-organizing folders HOT 11
- Package.json update needed HOT 4
- Where to put CNAME in Gastby structure?
- Is it possible to render wiki links without the double bracket? HOT 2
- Issues with links with alternative title when deploying to GitHub pages HOT 4
- Show tags for every page
- Include mermaid diagrams HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foam-template-gatsby-kb.