packages feed

pandoc-citeproc 0.7 → 0.7.0.1

raw patch · 4 files changed

+8/−11 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

changelog view
@@ -1,3 +1,9 @@+pandoc-citeproc (0.7.0.1)++  * In YAML use pandoc markdown syntax for super, subscript (#128).+    Added test case for rich text formatting.+  * Change default for first-reference-note-number to 0 on reading (#128).+ pandoc-citeproc (0.7)    * Improved YAML output:
pandoc-citeproc.cabal view
@@ -1,5 +1,5 @@ name:               pandoc-citeproc-version:            0.7+version:            0.7.0.1 cabal-version:      >= 1.12 synopsis:           Supports using pandoc with citeproc 
src/Text/CSL/Reference.hs view
@@ -441,7 +441,7 @@        v .:? "categories" .!= [] <*>        v .:? "language" .!= "" <*>        v .:? "citation-number" .!= CNum 0 <*>-       ((v .: "first-reference-note-number" >>= parseInt) <|> return 1) <*>+       ((v .: "first-reference-note-number" >>= parseInt) <|> return 0) <*>        v .:? "citation-label" .!= "")     where takeFirstNum (Formatted (Str xs : _)) =             case takeWhile isDigit xs of
src/Text/CSL/Style.hs view
@@ -176,21 +176,12 @@ adjustCSL _ (Span ("",[],[]) xs) = xs adjustCSL _ (Span ("",["citeproc-no-output"],[]) _) =   [Str "[CSL STYLE ERROR: reference with no printed form.]"]-adjustCSL False (SmallCaps xs) =-  RawInline (Format "html") "<span style=\"font-variant:small-caps;\">" : xs-    ++ [RawInline (Format "html") "</span>"] adjustCSL True (SmallCaps xs) =   RawInline (Format "html") "<sc>" : xs     ++ [RawInline (Format "html") "</sc>"]-adjustCSL False (Subscript xs) =-  RawInline (Format "html") "<span style=\"vertical-align:sub;\">" : xs-    ++ [RawInline (Format "html") "</span>"] adjustCSL True (Subscript xs) =   RawInline (Format "html") "<sub>" : xs     ++ [RawInline (Format "html") "</sub>"]-adjustCSL False (Superscript xs) =-  RawInline (Format "html") "<span style=\"vertical-align:sup;\">" : xs-    ++ [RawInline (Format "html") "</span>"] adjustCSL True (Superscript xs) =   RawInline (Format "html") "<sup>" : xs     ++ [RawInline (Format "html") "</sup>"]