remarkjs / react-markdown

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

Why isn't mathInline triggered? #866

Closed punkpeye closed 1 month ago

punkpeye commented 1 month ago

Initial checklist

Problem

I added import remarkMath from 'remark-math'; to my remark plugins.

I then added a custom component inlineMath: { console.log('Hello!'); }

I would expect inlineMath to be called when rendering math expression, but it isn't.

What am I missing?

wooorm commented 1 month ago

I do not know where you got the word inlineMath from. That doesn’t happen. There’s no code that does what you expect.

Math (“inline” or “block”) uses <code> elements.

Keys in components are HTML tag names.

github-actions[bot] commented 1 month ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.