Hand the built-in KatexRenderer through the renderers prop for both inlineKatex and blockKatex. Reusable, testable, dark-mode aware.
markedKatex() extension turns \(…\) and \[…\] syntax into inlineKatex / blockKatex tokens.KatexRenderer handles both modes, AMS environments, and dark-mode
stylesheet variants out of the box.The equation unites five fundamental constants.
Every quadratic has solutions:
Markdown works alongside math: bold, italic, and inline .
Tip: Use
\(...\)for inline math and\[...\]for block math. AMS environments work too.
Inline {#snippet inlineKatex} + {#snippet blockKatex} blocks call katex.renderToString directly. Best for one-off layouts or wrapping the math output in custom chrome per page.
{#snippet inlineKatex({ text })} + {#snippet blockKatex({ text })} call katex.renderToString directly inside one component.The equation unites five fundamental constants.
Every quadratic has solutions:
Markdown works alongside math: bold, italic, and inline .
Tip: Use
\(...\)for inline math and\[...\]for block math. AMS environments work too.