aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-03-04 23:15:17 -0800
committerJohn MacFarlane <[email protected]>2025-03-04 23:25:48 -0800
commit0d9fbc9410da119c253ace94cfbb41ef3f9a12f2 (patch)
treee31028b23c44a9778745b95ee554df1b812c5067 /src
parent6c3e43dc579ead6d114e2ad418168d63958f8f13 (diff)
LaTeX reader: support `\newline`, `\linebreak`.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 161306dc8..03d258545 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -386,6 +386,8 @@ inlineCommands = M.unions
, ("lowercase", makeLowercase <$> tok)
, ("thanks", skipopts >> note <$> grouped block)
, ("footnote", skipopts >> footnote)
+ , ("newline", pure B.linebreak)
+ , ("linebreak", pure B.linebreak)
, ("passthrough", fixPassthroughEscapes <$> tok)
-- \passthrough macro used by latex writer
-- for listings