summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-20 16:52:03 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-20 16:52:03 -0700
commit9cc128b5790437bacbda839d8ea49bd7f74ee118 (patch)
treef75661e4b3cefce0162aa18520ff6ad5ec8c1d71 /src/Text/Pandoc
parentf2fdd275fd44b4992d5ae3736c3f28deec700ba8 (diff)
LaTeX reader: Set identifiers on Spans used for \label.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 56eb85064..3292550b2 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1575,7 +1575,8 @@ treatAsInline = Set.fromList
dolabel :: PandocMonad m => LP m Inlines
dolabel = do
v <- braced
- return $ spanWith ("",[],[("label", toksToString v)])
+ let refstr = toksToString v
+ return $ spanWith (refstr,[],[("label", refstr)])
$ inBrackets $ str $ toksToString v
doref :: PandocMonad m => String -> LP m Inlines