Comments (4)
I tried various options, first of all, I tried to do this:
Create the components.js file here (in the existing gatsby-plugin-theme-ui folder)
src/gatsby-plugin-theme-ui/components.js
And import there import 'prismjs/components/prism-r'
But nothing came of this (I tried adding prism.r.js to different places), then I tried different other options. But, I'm afraid this is not something that can be implemented "out of the box", I think that in order to implement this, we need to add new Chronoblog functionality.
But I'm not so sure! Perhaps there is a way about which I do not know.
from gatsby-theme-chronoblog.
we only need do shadow gatsby-plugin-theme-ui/components.js like this
Then update styles.code at gatsby-plugin-theme-ui/index.js like this
I think we should add this customize to the readme file
@ganevru
from gatsby-theme-chronoblog.
Thanks for your efforts. I'm new to gatsby, I'll try to find another way!
from gatsby-theme-chronoblog.
Great job 👍! Yes, it is definitely worth adding to the readme. I think it will be better if you do it (since this is your contribution).
I already added information about Prism in the readme, I think it should be posted somewhere here: https://github.com/Chronoblog/gatsby-theme-chronoblog#adding-support-for-additional-programming-languages
Only, I think it will be better if instead of screenshots, you place the code there.
from gatsby-theme-chronoblog.
Related Issues (20)
- Trouble updating banner.png HOT 4
- Make an easy way to access post data from post-footer.mdx HOT 6
- Commenting solution HOT 4
- `getItemYear` does not handle locale properly HOT 3
- Have You considered Adding a Version that Works with Netlify CMS ? HOT 2
- How do I create a new component?
- How do I add/edit the CSS? HOT 4
- Ability to select multiple tags at a time? HOT 4
- Getting error when running gatsby build! HOT 9
- Won't load local file GIF in md or mdx blog file HOT 1
- Local copy of theme with updated plugins?
- Component _____ was not imported, exported, or provided by MDXProvider as global scope HOT 3
- gatsby components not getting mounted in build on github pages with actions HOT 2
- <a> cannot appear as a descendant of <a>
- -webkit-appearance is not supported by theme-ui sx property
- The demo stopped working HOT 5
- How can I add pagination? HOT 2
- Remove related posts from any post HOT 2
- How to Remove Search, Tag Cloud & Additional Posts in a Blog Post HOT 2
- Upgrade gatsby version with related dependencies 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 gatsby-theme-chronoblog.