remarkjs / react-markdown

Markdown component for React
https://remarkjs.github.io/react-markdown/
MIT License
13.27k stars 876 forks source link

rehypeKatex with remarkMath is not working for latex math #805

Closed sami-lab closed 3 months ago

sami-lab commented 11 months ago

Initial checklist

Affected packages and versions

^8.0.2

Link to runnable example

sandbox

Steps to reproduce

I have chat AI bot in which i am using react-markdown. But markdown is not working with latex formulas. I have attached my implementation

sandbox

Expected behavior

Latex formulas should be format like usuall

Actual behavior

Currently it is rendering as text

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

ChristianMurphy commented 10 months ago

Welcome @sami-lab! 👋 What is your question or concern? In the sandbox you shared, the react-markdown example labeled "Katex" renders the formula correctly and fully styled. Screenshot 2023-12-31 at 11-32-20 react markdown katex latex mathjax - CodeSandbox

iArchin commented 3 months ago

i have the same problem, did you find the solution? @sami-lab

wooorm commented 3 months ago

There is no problem. See thread. I can’t look in your head. Share things.

github-actions[bot] commented 3 months ago

Hi team! I don’t know what’s up as there’s no phase label. Please add one so I know where it’s at.

Thanks, — bb