Giter Club home page Giter Club logo

Comments (1)

ZachSaucier avatar ZachSaucier commented on June 3, 2024

Hey Hamid and thanks for taking the time to post.

Unfortunately the way that this website does code sections is not good in terms of the markup. If you look at the actual DOM that is used (which is what Just Read uses), it treats it like a bunch of divs. If the code used "normal" code blocks (by that I mean that is used <pre> elements to format the code) Just Read would render it with the indentation. But in order for Just Read to support code sections on this website, you'd have to load EnlighterJS.

In theory one could detect if EnlighterJS is trying to be used, load the JS for it via a CDN, and render it that way. But unfortunately that would not be allowed due to restrictions that the various web stores (like Chrome's and Firefox's) have for restrictions. So you could add this ability for Just Read yourself if you wanted to but you could only use that version of Just Read for yourself.

The other alternative is that Just Read could come bundled with EnlighterJS, but given it's not very widely used and not maintained I am not willing to do that.

So this is a won't-fix. Sorry about that.

from just-read.

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.