summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-09-01 12:21:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-09-01 12:21:55 -0700
commit632e3c180913e0ffc7191868ac5b74cd3f8e2337 (patch)
treef2bf57757aff97e176a8e8c205e5bc5e75725af2 /src
parentfc0beae4207bdfa8128b6cb5ab1e9a143ccd6db3 (diff)
LaTeX writer: Fix regression.
In 3.1.7, pandoc added two labels to LaTeX figure environments, one with a phantomsection. Closes #9045.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index bdfa96c1a..0a9fb86d3 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -569,8 +569,7 @@ blockToLaTeX (Figure (ident, _, _) captnode body) = do
[b] -> blockToLaTeX b
bs -> mconcat . intersperse (cr <> "\\hfill") <$>
mapM (toSubfigure (length bs)) bs
- target <- hypertarget ident
- let innards = target $$ "\\centering" $$ contents $$ caption <> cr
+ let innards = "\\centering" $$ contents $$ caption <> cr
modify $ \st ->
st{ stInFigure = isSubfigure
, stSubfigure = stSubfigure st || isSubfigure