Skip to content

Fix url generation for KaTeX fonts

Mike Greiling requested to merge mg-fix-katex-fonts into master

What does this MR do?

Fixes #214722 (closed) in which it was identified that urls for KaTeX fonts were being incorrectly generated as url([object Module]) instead of something like url(/assets/webpack/KaTeX_AMS-Regular.cd28a1d7.woff2). This caused visual errors in rendered math blocks.

Screenshots

before after
before after

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports