git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: Put citations in span with class="citation".

See #313.

commit05a26aef3aaf08e60c81a097be7447c98ee69a95 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 29 Nov 2011, 12:49 (15 years ago) parent479a0a5
1 file changed+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
@@ -641,7 +641,8 @@ inlineToHtml opts inline =
641641 anchor ! [href ("#" ++ writerIdentifierPrefix opts ++ "fn" ++ ref),
642642 theclass "footnoteRef",
643643 prefixedId opts ("fnref" ++ ref)] << ref
644− (Cite _ il) -> inlineListToHtml opts il
644+ (Cite _ il) -> do contents <- inlineListToHtml opts il
645+ return $ thespan ! [theclass "citation"] << contents
645646
646647blockListToNote :: WriterOptions -> String -> [Block] -> State WriterState Html
647648blockListToNote opts ref blocks =