Replies: 2 comments 1 reply
-
This will require code changes to the auto-render extension. Can you file an issue for this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
The <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", () => {
renderMathInElement(document.body, {
delimiters: [
{ left: '\\[', right: '\\]', display: true }, // block
{ left: '$$', right: '$$', display: true }, // block
{ left: '\\(', right: '\\)', display: false }, // inline
],
throwOnError: true,
errorCallback: (msg, error) => alert(error.stack.split('\n')[0]),
});
});
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the Auto-render extension heavily (github).
I use the error handling like this:
With autorender I get (example):
With Katex error handling, however, I get:
The important part is missing:
How to get the ParseError message in the callback?
Beta Was this translation helpful? Give feedback.
All reactions