mbarkhau / markdown-katex

Adds KaTeX support for Python Markdown
MIT License
16 stars 10 forks source link

Option to use custom css #6

Open julianstirling opened 3 years ago

julianstirling commented 3 years ago

It would be great to have an option to pass a path to a local copy of katex so that we can create documentation that will work offline without needing to pull from https://cdn.jsdelivr.net/npm/katex@0.13.6/dist/katex.min.css

mbarkhau commented 3 years ago

Fair point. The url is currently hardcoded in src/markdown_katex/html.py.

I would accept a PR to customize the styles that are currently hardcoded.

mbarkhau commented 3 years ago

I should note, if the idea here is to change the katex.min.css so that it is local, then you very likely want to also have all the font files referenced by it. I did something similar here a while ago: https://github.com/mbarkhau/litprog/blob/master/makefile#L102

julianstirling commented 3 years ago

Fantastic. Thanks for the speedy response. I will look into it when i get a chance.