diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2024-03-10 11:14:41 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2024-03-10 11:14:41 -0700 |
| commit | 812f82ab098a6896b6752fdfe6dc12cbf8502271 (patch) | |
| tree | ed1fd351aef33831ed594d6e04265b014670b07e /test/command | |
| parent | 626ffd74b4cb0038eb7d4ee638486f156753da1c (diff) | |
LaTeX reader: improve tokenization of `@`.
Make tokenization sensitive to `\makeatletter`/`\makeatother`.
Previously we just always treated `@` as a letter. This led
to bad results, e.g. with the sequence `\@`. E.g.,
`a\@ b` would parse as "ab" and `a\@b` as "a".
Closes #9555.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/9555.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/9555.md b/test/command/9555.md new file mode 100644 index 000000000..0631f71af --- /dev/null +++ b/test/command/9555.md @@ -0,0 +1,12 @@ +``` +% pandoc -t native -f latex +a\@ b\@c + +\makeatletter +a\@ b\@c +\makeatother +a\@ b\@c +[ Para [ Str "a" , Space , Str "bc" ] +, Para [ Str "ab" , SoftBreak , Str "a" , Space , Str "bc" ] +] +``` |
