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:
1 parent
7bc4dc37b2
commit
6b46c2dfd1
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user