Comments (7)
Similar to that, the current syntax highlighter I'm using doesn't support Rust 😢 So that should be fixed as well.
from joeprevite.com.
Does GitHub support Rust? I would guess they do. Let's check
if x < 5 {
x + 1
}
from joeprevite.com.
I'm going to take a stab at this!
from joeprevite.com.
Looking at the current syntax highlighter, it looks like these packages are involved:
- "gatsby-remark-prismjs": "^3.3.28"
- "prism-react-renderer": "^1.0.2"
- "prism-themes": "^1.3.0"
- "prismjs": "^1.17.1"
And the actual implementation happens in src/components/mdx/Code.js
from joeprevite.com.
So the implementation lies in this project prism-react-renderer
. The question is:
- can I easily add support for new languages like Rust?
- can I export my VS Code theme and use that?
from joeprevite.com.
So I was able to add Rust pretty easily! The next step will be switching the theme to be my VS Code theme
from joeprevite.com.
I was able to add the vscode theme too!
from joeprevite.com.
Related Issues (20)
- Update Intentional Blog Post
- Dark Mode: Can't see active filters HOT 3
- Clarify Twitter Card post
- Fix Edit on GitHub link HOT 3
- Add Prince's post HOT 3
- How to pronounce last name HOT 1
- Upgrade embedder for excalidraw
- Dark Mode Issue
- Finish PDF in Excalidraw for learning quickly post
- Blog post on email forwarding + Google Domains + Vercel hosting
- draft blog
- Blog Post on Treadmill vs Couch people
- Blog Post - Content Strategy Notes HOT 2
- Blog Post - Newsletter Notes
- blog post bilingual 2 years HOT 2
- Blog post on expertise HOT 3
- Blog Post on Peak Notes
- Blog post italiano
- Blog post Copywork as a Tool for Onboarding
- Blog Post - Friendmagnets
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 joeprevite.com.