Repository navigation
chore: include katex resources from npm - #9712
Conversation
|
QA'ed this. The fonts are properly loaded from the local fs when we are trying to render mathematical equations. |
logseq-cldwalker
left a comment
There was a problem hiding this comment.
@AllanChain Thanks for doing this in a secure way for everybody! 👍 🚢 Verified js and css is loading as expected with a basic example like $$E = mc^2$$
| "@electron/get@^2.0.0": | ||
| version "2.0.2" | ||
| resolved "https://registry.npmjs.org/@electron/get/-/get-2.0.2.tgz#ae2a967b22075e9c25aaf00d5941cd79c21efd7e" | ||
| resolved "https://registry.yarnpkg.com/@electron/get/-/get-2.0.2.tgz#ae2a967b22075e9c25aaf00d5941cd79c21efd7e" |
There was a problem hiding this comment.
@sprocketc Looks like these were changed in #9482 so reverting them back
There was a problem hiding this comment.
@logseq-cldwalker I think registry.yarnpkg.com is now just a cname that points to npmjs.org, so those should be the same thing (see https://yarnpkg.com/getting-started/qa#why-registryyarnpkgcom-does-facebook-track-us)
If we want to always use registry.yarnpkg.com for consistency, I'll have to make some additional changes, but I don't think it's worth it.
chore: include katex resources from npm
Continuation of #9673
Instead of copying resources into the repo, I made some changes to download them from NPM and integrated them into the build process. JS and fonts are copied to the output and CSS is directly imported from
node_modules/.