Files
John MacFarlane c1f87fdb37 Typst writer: handle labels and citaiton ids with spaces...
and other special characters. In these cases, we produce an
explicit `label()` rather than using `<>` or `@`.

Cloess #9387.
2024-01-29 12:25:09 -08:00

313 B

% pandoc -f html -t typst
<div id="my label">
<p>test</p>
</div>
<p>See <a href="#my label">my label</a>.</p>
^D
#block[
test

] #label("my label")
See #link(label("my label"))[my label];.

% pandoc -f latex -t typst
\cite{10.1117/12.695309}
\cite{foo}
^D
#cite(label("10.1117/12.695309")) @foo