Skip to content

LaTeX/Mathematical Equations Not Rendering in Chat in Openfang Web #1167

Description

@nimitbhardwaj

Description

When markdown files containing LaTeX equations (enclosed in $...$ or $$...$$) are viewed in OpenFang's web dashboard or embedded views, the mathematical notation does not render. The raw LaTeX code is displayed as plain text instead.

Example

Expected: Properly formatted mathematical equation

Actual: Raw text $$T = 2\pi \sqrt{\frac{I}{mgh}}$$ displayed

Cause

OpenFang's markdown viewer does not include a LaTeX rendering library (KaTeX or MathJax). When .md files containing math expressions are displayed in the dashboard or embedded views, the raw LaTeX source is shown as plain text instead of rendered equations.

Request

Consider one of the following solutions:

  1. Use images — Replace inline math with pre-rendered images of equations
  2. Use Unicode math — Replace LaTeX with Unicode symbols (e.g., √, π, α, β)
  3. Add client-side rendering — Embed KaTeX/MathJax via GitHub Pages or browser extension
  4. Document limitation — Add a note to contribution guidelines that equations must be submitted as images or Unicode

Expected Behavior

The latex math should have been rendered correctly.

Steps to Reproduce

Ask the following question from openfang

"to determine the acceleration due to gravity using a bar pendulum"

OpenFang Version

0.6.4

Operating System

Linux (x86_64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions