Comments (5)
Sweet! Just tried it out, and it worked nicely. Thanks for adding this feature! :)
from readme2tex.
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.
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.
No worries, thanks for bringing it up! :)
from readme2tex.
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)
- Exception for latex in code snippets
- Rawgit URL not work anymore HOT 9
- UnicodeDecodeError
- No such file or directory: 'dvisvgm' HOT 1
- Recording has been archived in README
- How can use readme2tex over multiple files?
- [Feature suggestion] turn this into a github action HOT 4
- Support for persistent newcommand definitions HOT 1
- Support for unicode
- '$' in code blocks
- gfill is NoneType HOT 1
- Remotes that are ssh instead of http
- Possible to run without being in a git repo? HOT 4
- New line in math block
- [Possible bug report] - Proceeding tab HOT 2
- 503: invalid upstream response
- Dark theme issues HOT 2
- Inline equations will insert newlines HOT 1
- 403 Forbidden...? HOT 1
- Error executing subprocess.CalledProcessError dvisvgm HOT 3
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 readme2tex.