Skip to content

Add KaTex server-side math rendering support #2604

@joshlk

Description

@joshlk

Checklist

Is your feature request related to a problem? Please describe

Firstly, thank you for your hard work on Chirpy! I have a blog that contains posts with a lot of math equations, and I have had a great deal of trouble with the MathJax rendering: long load times, the math never rendering without a refresh, and some equations missing. For example this page.

Describe the solution you'd like

As most web browsers now directly support MathML, server-side rendering of math equations is a good option via KaTex, which converts the LaTeX equation to MathML when the pages are converted to HTML. This removes the need for MathJax and the use of JavaScript. For example jektex is a Jekyll plugin to do just that.

I have created a PR which implements this feature: #2603

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions