set strict false in auto-render
See original GitHub issueI’m trying to use auto-render and set strict to false, but I still got console warn
My code:
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
onload="renderMathInElement(document.body, {strict: false});"></script>
I got:
LaTeX-incompatible input and strict mode is set to 'warn'
How could I fix it?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Options - KaTeX
This option determines the color that unsupported commands and invalid LaTeX are rendered in when throwOnError is set to false . (default: #cc0000...
Read more >Cakephp 2.4.2 - default layout loading instead of ajax layout
Show activity on this post. add $this->autoRender = false; ... Of course this is happening in a controller with rather strict Auth restrictions....
Read more >Strict Mode - React
StrictMode is a tool for highlighting potential problems in an application. Like Fragment , StrictMode does not render any visible UI.
Read more >KaTeX/KaTeX - Gitter
Hi, I'm trying to use auto-render with making strict option false, ... input and strict mode is set to 'warn'', wht I got...
Read more >pflag — Better parse command line flags in PHP - ITNEXT
* Strict match args number. * if exist unbind args, will throw FlagException * * @var bool */ protected $strictMatchArgs = false;. Setting...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, maybe that’s the reason. Thank you!
Does that mean your text is getting dynamically added to the page? If so, someone must be calling KaTeX to render it, and that call needs to have the strict flag set to false as well.