remarkjs/remark-math

Allow users to pass the option displayMode true

uuykay opened this issue · 3 comments

Initial checklist

Problem

I'm reading the docs for the options and it states that All other options, except for displayMode, are passed to KaTeX.. I am interested in turning displayMode to true, however this is explicitly forbidden here. Can you let me know why that is?

https://unifiedjs.com/explore/package/rehype-katex/#options

Solution

Allow users to pass displayMode:true

Alternatives

Have an option to configure the presentation to the equivalent to displayMode:true

Ok I just played around with it, and displayMode is supported by doing

$$
\\frac{r^3}{T^2} = \\frac{GM}{4\pi^2}
$$

I missed this because when writing displayMode in my files, I was doing

$$ \\frac{r^3}{T^2} = \\frac{GM}{4\pi^2} $$

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

Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed.

See our support docs for how and where to ask questions.

Thanks,
— bb