question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set strict false in auto-render

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zmj97commented, May 9, 2019

Yes, maybe that’s the reason. Thank you!

0reactions
edemainecommented, May 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found