diff options
| author | John MacFarlane <[email protected]> | 2022-01-14 23:11:21 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-01-14 23:11:21 -0800 |
| commit | 0f3a615fd45a06c58ddfe7ffc15d237c717d79e6 (patch) | |
| tree | 630ebd7d46f0315ca49d843c6c0f0477b619ee08 /test/markdown-reader-more.native | |
| parent | 5b7d9ef5c278eb7043d55cbce457fbe26cd90dcd (diff) | |
Include following newline in latex ControlSeq token.token-newline
This gives behavior that comes closer to LaTeX's own.
If we don't absorb the following newline, it gets
interpreted as a SoftBreak, inserting a spurious space
in some contexts.
Diffstat (limited to 'test/markdown-reader-more.native')
| -rw-r--r-- | test/markdown-reader-more.native | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/markdown-reader-more.native b/test/markdown-reader-more.native index 7c15f627a..bfd13caed 100644 --- a/test/markdown-reader-more.native +++ b/test/markdown-reader-more.native @@ -67,16 +67,10 @@ Pandoc , Space , Str "environments" ] - , RawBlock (Format "tex") "\\placeformula \\startformula" - , Para - [ Str "L_{1}" - , Space - , Str "=" - , Space - , Str "L_{2}" - , SoftBreak - , RawInline (Format "tex") "\\stopformula" - ] + , RawBlock (Format "tex") "\\placeformula" + , RawBlock + (Format "tex") + "\\startformula\n L_{1} = L_{2}\n \\stopformula" , RawBlock (Format "tex") "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]" |
