leegao / readme2tex

Renders TeXy Math for Github Readmes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have to remove ?invert_in_darkmode to render images

kdavis-mozilla opened this issue · comments

First, thanks for writing this!

Second, after I generate via

python -m readme2tex --output README.md --readme .README.md --branch master --svgdir 'docs/gfx' --nocdn --rerender --usepackage 'tikz' --usepackage 'algorithm' --usepackage 'algpseudocode' --usepackage 'fancybox'

I get a README.md with svg image links all ending in ?invert_in_darkmode. If I push these to github, the images are broken. However, if I remove ?invert_in_darkmode from the generated document everything works fine.

Another point that might be relevant, this is for a private repo.

Ahh, that's definitely a problem, I'll add a flag to disable it. For the time being, you can try cloning this locally, modifying https://github.com/leegao/readme2tex/blob/master/readme2tex/render.py#L325 to be always False, and run

python setup.py develop

which will symlink the readme2tex directory to your local repo

@leegao Thanks! This quick fix works perfectly.