Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use custom css #6

Open
julianstirling opened this issue May 13, 2021 · 3 comments
Open

Option to use custom css #6

julianstirling opened this issue May 13, 2021 · 3 comments
Assignees

Comments

@julianstirling
Copy link
Contributor

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/[email protected]/dist/katex.min.css

@mbarkhau
Copy link
Owner

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 mbarkhau changed the title Option to use local katex Option to use custom css May 13, 2021
@mbarkhau
Copy link
Owner

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
Copy link
Contributor Author

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

@mbarkhau mbarkhau self-assigned this Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants