Skip to content

[2025-11-11] Chameleon v6.27.0

Choose a tag to compare

@ncamera ncamera released this 11 Nov 16:58
· 4 commits to main since this release

Chameleon v6.27.0

Category Change
Feature [ch-chat][ch-markdown-viewer] Add support for rendering mathematical formulas using the new ch-math-viewer component by @ncamera in #568
Fix [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-viewer component 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/fonts folder.

    • To declare the font-faces of these custom fonts in your project, you must use the math-viewer-font-faces mixin located in the node_modules/@genexus/chameleon-controls-library/dist/assets/scss/math-viewer-font-face.scss folder.

  • The ch-chat and ch-markdown-viewer components 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-viewer is not downloaded to save resources.

Full Changelog: v6.26.0...v6.27.0