Giter Site home page Giter Site logo

Comments (7)

rgalanakis avatar rgalanakis commented on May 14, 2024 1

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.

peterpeterparker avatar peterpeterparker commented on May 14, 2024 1

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.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

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.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

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.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

@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.

rgalanakis avatar rgalanakis commented on May 14, 2024

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.

peterpeterparker avatar peterpeterparker commented on May 14, 2024

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)

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.