Git Product home page Git Product logo

Comments (5)

alshedivat avatar alshedivat commented on July 19, 2024 1

Sweet! Just tried it out, and it worked nicely. Thanks for adding this feature! :)

from readme2tex.

leegao avatar leegao commented on July 19, 2024

Hey @alshedivat,

Thanks for reporting this. I can try to see if I can do the PNG work-around you've suggested. It should be relatively straightforward to add a flag that processes svgs into pngs (say, the --relative flag) and embed them as relative urls. Of course, we would have to add mutual exclusion rules like not being able to use a separate branch to keep track of the svgs, but it should work.

from readme2tex.

leegao avatar leegao commented on July 19, 2024

I just added this feature, which you can tick with the combination

python -m readme2tex --branch master --nocdn --pngtrick ...

In fact, the documentation for this (https://github.com/leegao/readme2tex/tree/f8615f5b1cdd0238004270fefd82a086c3ecff19#relative-paths) is itself rendered using this trick.

Note that you'll probably want to explicitly tick the --rerender flag the first time you run pngtrick since the caching system is still looking for svgs.

If you get a chance to test this out, let me know who it goes :)

from readme2tex.

leegao avatar leegao commented on July 19, 2024

No worries, thanks for bringing it up! :)

from readme2tex.

hoj201 avatar hoj201 commented on July 19, 2024

Am I wrong, or is this feature not available yet on PyPI? My version of readme2tex is 0.0.1b2

from readme2tex.

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.