Skip to content

KaTeX does not render HTML extension commands despite strict: false and trust: true options #3492

Answered by JohnScience
JohnScience asked this question in Q&A
Discussion options

You must be logged in to vote

The issue was the onload attribute that crept into the 3rd line in the the head of HTML document:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css" integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js" integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@JohnScience
Comment options

Comment options

You must be logged in to vote
1 reply
@JohnScience
Comment options

Comment options

You must be logged in to vote
1 reply
@edemaine
Comment options

Answer selected by JohnScience
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants