Skip to content

Add KaTeX math rendering for LaTeX in responses #12

Description

@rdwj

Render `\(...\)` and `\[...\]` LaTeX via KaTeX. Uses `katex.renderToString()` during content processing to avoid CSS conflicts.

Consider making this opt-in or lazy-loading on first math detection to avoid overhead for non-math agents.

Reference: tool-calling-demo
See UPSTREAM_PORT.md section 1.5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions