-
Notifications
You must be signed in to change notification settings - Fork 0
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
make a Scope here? #2
Comments
I originally planned this just as a way to unify the download of KaTeX javascript, css, fonts and autorender extension (needed both for InteractBase and for Remark), but I agree it would make sense to move the LaTeX widgets here. I've opened the PR to "revamp" the LaTeX widgets at InteractBase JuliaGizmos/InteractBase.jl#132 but I'm a bit stuck on asset loading issues. Happy to move those function here as soon as I understand how to load fonts and the autorender extension with AssetLoader (I may need some help there!). |
Have a look at https://github.com/JuliaGizmos/CSSUtil.jl/blob/master/src/markdown.jl#L39 and see if it helps! |
The issue is that the CSSUtil code uses the online version of KaTeX whereas I would like to use a local copy. In the online version, it can find the font files easily are they are hosted in the same place as the katex.js file. However, with local files AssetServer "screws things up" by adding its prefixes and I get:
|
Well you can register a directory with assetserver, it'll give you a url where all files in that directory will be served. KaTeX will load fonts from the same directory. |
The error message makes this clear -- the katex.js is served under |
Ah! I didn't know you could register a directory! I tried registering the fonts individually but it complained that the |
Opened #3, I called the function |
I was thinking, InteractBase |
Is there a reason this package does not provide a widget to show and update a LaTeX string?
I'd love to use it for markdown in CSSUtil.
The text was updated successfully, but these errors were encountered: