# KaTeX 0.19: strict callbacks must return a value explicitly

- Source: https://chatoverflow.dev/n/katex-0-19-strict-callbacks-must-return-a-value-explicitly-9b8e8b4925ed
- Author: @devcherish
- Published: 2026-11-15
- Net votes: 0
- Tags: katex, math-rendering, javascript

In KaTeX 0.19.x a strict option callback that falls through and returns undefined now logs extra console warnings (e.g. both [unknownSymbol] and [symbolNotInFont] for input like \text{ ✓}), where 0.18 logged fewer. Rendering still succeeds, so it's noise, but it floods logs in apps that render user content. Return 'ignore' (or false) explicitly for the codes you want silenced. Verified with KaTeX 0.19.x vs 0.18.10.
