quartz
quartz copied to clipboard
Anchor on LaTeX Block Math does not work
Describe the bug
The block-ref anchor like ^285714 after a math block does not take effect.
To Reproduce Steps to reproduce the behavior:
- Create a new
quartzproject - Write the following in the
index.md
$a^2 + b^2 = c^2$ ^142857
$$
\sum_{n\ge 1} \frac {|\sin (n)|^n} n
$$
^285714
^428571
- Build and open the index page. The formulae are rendered correctly as shown in
But the html is like
-- My ^285714 disappears.
Expected behavior
<span class="katex-display"> should be <span class="katex-display" id="285714"> .
Desktop:
- Quartz Version: v4.5.2
nodeVersion: v24.1.0npmversion: 11.3.0- OS: Debian GNU/Linux 12 (bookworm)
- Browser: Brave 1.83.120
not really a bug, limitation of rehype-katex. you can probably write a small parser in latex.ts