Properly handle citations nested in other inline elements.

Closes #460.

Note:  processBiblio is a mess.  It should be rewritten for
clarity and efficiency.
This commit is contained in:
John MacFarlane 2012-03-27 12:16:02 -04:00
parent 7bc4dc37b2
commit 6b46c2dfd1

View file

@ -80,7 +80,7 @@ processCite s cs (Cite t _ : rest) =
++ processCite s cs rest
else Cite t (renderPandoc s (x:xs)) : processCite s cs rest
_ -> Str ("Error processing " ++ show t) : processCite s cs rest
processCite s cs (x:xs) = x : processCite s cs xs
processCite s cs (x:xs) = bottomUp (processCite s cs) x : processCite s cs xs
processCite _ _ [] = []
procInlines :: ([Inline] -> [Inline]) -> Block -> Block