Comments (7)
If a block does not specify a language for the code block (I'll use tick
instead of a backtick and space
instead of a space), like:
<tick tick tick>
console.log('hi');
<tick tick tick>
or:
<space space space space>console.log('hi');
there is no highlight by default (the entire contents are muted). You need to use:
<tick tick tick>js
console.log('hi');
<tick tick tick>
from gatsby-remark-highlight-code.
Thanks everybody for the information and @joshuamorony for the PR
It should now be solved and the fix has been released to npm (v3.0.1
)
from gatsby-remark-highlight-code.
No sure I understand your question, can you provide a sample repo to make it clearer?
Thanks in advance for the details.
from gatsby-remark-highlight-code.
Did not hear anything back since a week, therefore I close the issue / question.
I guess @harrisoncramer you find another solution.
Feel free to ping me with more details if it is not the case, happy to reopen it.
from gatsby-remark-highlight-code.
@rgalanakis thank you for the clear explanation. Indeed when no language, it should fallback on default aka javascript.
Would you like to give a try to solve the issue?
from gatsby-remark-highlight-code.
Hi @peterpeterparker , since I found a workaround I doubt I will find the time to do this 😆
One of my coworkers, @ernes7, could probably take this on if you aren't going to have time for it.
from gatsby-remark-highlight-code.
Thanks for the feedback @rgalanakis.
I have no time for it in next weeks.
If you coworker can tackle it that would be for sure awesome.
from gatsby-remark-highlight-code.
Related Issues (20)
- Syntax highlighting not working on deployed site HOT 7
- Configuration does not take effect afterwards HOT 9
- Unable to display code if language is not supported HOT 3
- Support for highlightLines attribute HOT 10
- Unable to highlight a single line using the current parseLanguageAndHighlightedLines implementation HOT 5
- couldnt get this to work HOT 11
- Hide the colored balls in Carbon theme HOT 1
- Highlight-lines does not work anymore
- It looks like language mermaid is not supported HOT 6
- How do I override inlineCode? HOT 7
- Hiding the header? HOT 1
- Overflow: scroll HOT 1
- Disabling wordwrap / enabling overflow:scroll? HOT 1
- Config for prismjs? HOT 3
- Support for gatsby 4? HOT 7
- Rerendering deckgo-highlight-code compontent on state change HOT 3
- My code doesn't highlight. HOT 1
- Support for gatsby 5? HOT 7
- Plugin doesnt work in gatsby v5 HOT 2
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-remark-highlight-code.