[2025-11-11] Chameleon v6.27.0
Chameleon v6.27.0
| Category | Change |
|---|---|
[ch-chat][ch-markdown-viewer] Add support for rendering mathematical formulas using the new ch-math-viewer component by @ncamera in #568 |
|
[ch-markdown-viewer] Improve the parser for mathematical delimiters by @ncamera in #569 |
Mathematical rendering support for the ch-chat and ch-markdown-viewer components
-
Added the
ch-math-viewercomponent to render mathematical formulas by using KaTeX.-
To use this component, you must include the necessary custom fonts in your project. These custom fonts are located in the
node_modules/@genexus/chameleon-controls-library/dist/assets/fontsfolder. -
To declare the font-faces of these custom fonts in your project, you must use the
math-viewer-font-facesmixin located in thenode_modules/@genexus/chameleon-controls-library/dist/assets/scss/math-viewer-font-face.scssfolder.
-
-
The
ch-chatandch-markdown-viewercomponents now automatically detect when it is necessary to render a mathematical formula when using the syntax:-
$ formula $ -
$$ formula $$ -
\( formula \) -
\[ formula \]
If no formulas are detected, the JS for the
ch-math-vieweris not downloaded to save resources. -
Full Changelog: v6.26.0...v6.27.0