glebm / katex-ruby

Renders KaTeX from Ruby.
MIT License
24 stars 10 forks source link

Stylesheet not in correct location relative to fonts #12

Open mohd-akram opened 3 months ago

mohd-akram commented 3 months ago

It seems katex.css is in a stylesheets directory whereas it loads fonts from fonts/, so it shouldn't be in a subdirectory.

glebm commented 3 months ago

In Rails with sprockets, the stylesheets directory is not part of the web server path.

mohd-akram commented 3 months ago

It seems there's both a sprockets version (_katex.scss) and a regular one (katex.css) in different directories. I'm using the latter with Jekyll - maybe only that one can be moved? Alternatively, you can consider adding this module to the library for Jekyll users so they don't have to fuss with the paths.