DocsGuidesFootnotes & Math

Footnotes & Math

HybricMark supports note-like footnote syntax and KaTeX-based math rendering in the same document flow.

Footnote syntax

This is a sentence[^1].
 
[^1]: Footnote content here.
Reference token `[^1]` is rendered as clickable reference. Definition line keeps editable source text and supports back-reference jump.

Math syntax

Inline: $E = mc^2$
 
Block:
$$
\int_0^1 x^2 \, dx = 1/3
$$
Math rendering uses `@tiptap/extension-mathematics` and KaTeX. `throwOnError` is disabled for resilient typing.

Operations from context menu

  • Insert footnote placeholder.
  • Insert math block.
  • Clear style for selected text/block when needed.

Integration notes

  • Import KaTeX CSS in app entry.
  • Persist JSON to preserve semantic math/footnote nodes.
import 'katex/dist/katex.min.css'