Coder Social home page Coder Social logo

Line numbers not working about mapache HOT 6 CLOSED

MaluNoPeleke avatar MaluNoPeleke commented on August 15, 2024
Line numbers not working

from mapache.

Comments (6)

godofredoninja avatar godofredoninja commented on August 15, 2024

Hello @MaluNoPeleke

Please read — https://github.com/godofredoninja/Mapache#prismjs-code-syntax

from mapache.

MaluNoPeleke avatar MaluNoPeleke commented on August 15, 2024

Hi @godofredoninja

I have done that and used ```bash line-numbers for the code snippet but the line numbers are not showing up.

from mapache.

godofredoninja avatar godofredoninja commented on August 15, 2024

The problem comes from ghost.
At this moment I can not explain why this is happening.

I hope to investigate why it is happening later.

from mapache.

godofredoninja avatar godofredoninja commented on August 15, 2024

— If you want to have the numbering. Just add this piece of code in your ghost configuration in the code section

<script>
    $('pre').addClass('line-numbers');
</script> 

from mapache.

MaluNoPeleke avatar MaluNoPeleke commented on August 15, 2024

Great, working now! :)

from mapache.

kawaiseb avatar kawaiseb commented on August 15, 2024

I add it in my code section but no way... line-numbers is never activated... any idea ?

from mapache.

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.