aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/LaTeX.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-19 11:08:09 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-19 11:08:09 -0800
commita78bef17b96f431aa3bc31c1b9f8b24a9b5ea64a (patch)
tree49944da2fd518154a5aafaf070f1af94e05b1656 /src/Text/Pandoc/Writers/LaTeX.hs
parent3689d047a8086e91ceb58f8d6b7c9733a4ba22eb (diff)
downloadpandoc-a78bef17b96f431aa3bc31c1b9f8b24a9b5ea64a.tar.gz
For bibliography match Div with id 'refs', not class 'references'.
This was a mismatch between pandoc's docx, epub, latex, and markdown writers and the behavior of pandoc-citeproc, which actually looks for a div with id 'refs' rather than one with class 'references'.
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 57ef589e3..ca8295f0a 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -138,8 +138,8 @@ pandocToLaTeX options (Pandoc meta blocks) = do
let method = writerCiteMethod options
let blocks' = if method == Biblatex || method == Natbib
then case reverse blocks of
- Div (_,["references"],_) _:xs -> reverse xs
- _ -> blocks
+ Div ("refs",_,_) _:xs -> reverse xs
+ _ -> blocks
else blocks
-- see if there are internal links
let isInternalLink (Link _ _ ('#':xs,_)) = [xs]