Skip to content

Math fonts are missing after the introduction of SSR math formulas #655

Open
@oosquare

Description

@oosquare

Description

After the server-side rendering of math formulas functionality is introduced, all KaTeX fonts are removed from this repository. But these fonts are not fetched from elsewhere such as a CDN, making those rendered equations in a very weird look.

Steps To Reproduce

  1. Checkout the repository to revision b700825943a14d94b5995c7cb759ee625ccff04b
  2. Write any math equations
  3. Serve the website and see the rendered formulas

Additionally, the effect can be observed directly on this page served by CD deployment of #589.

Expected Behavior

Fonts should be fetch somehow to make the rendered formulas look normal.

Actual Behavior

Fonts are missing.

Screenshots

A screenshot from https://deploy-preview-589--hugo-hextra.netlify.app/docs/guide/latex/, where the version mentioned above is used:

Image

Environment

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions