mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-05 15:15:41 +00:00
Previously we added semicolons after inline commands not followed by spaces, but mainly this was to deal with one issue: the presence of a semicolon after an inline command, which would be swallowed as a command separator (#9252). This commits adopts an approach that should avoid so many superfluous semicolons: it escapes semicolons that might come right after a command. See #11196.
24 lines
312 B
Markdown
24 lines
312 B
Markdown
```
|
|
% 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
|
|
|
|
```
|