remarkjs/react-markdown

Why isn't mathInline triggered?

punkpeye opened this issue · 2 comments

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?

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.

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