Skip to content

LaTeX doesn't render on first load for some katas #1435

@billti

Description

@billti

I spent hours debugging this thinking it was changes I made before realizing this is now broken on the site too :-/ , but if you go to the playground https://microsoft.github.io/qsharp/ and immediately go to the 'Single-qubit gates' or 'Multi-qubit gates' then you'll see the LaTeX fails to render on first load.

I tracked it down to the use of \color{red], which was introduced extensively today in #1424, and a little further back in #1369, both by @WWhitedogi .

On subsequent renders it loads fine, probably as that is part of an extension that loads on first use (still seems to be a MathJax bug). Easiest fix is just to remove the \color{red} usage. Is it required?

CC @tcNickolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions