packages feed

latex-svg-pandoc 0.2 → 0.2.1

raw patch · 3 files changed

+19/−15 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

+ CHANGELOG.md view
@@ -0,0 +1,3 @@+# 0.2.1++- Handle also raw blocks with `"latex"` format.
latex-svg-pandoc.cabal view
@@ -1,6 +1,6 @@-cabal-version: 2.2-name:          latex-svg-pandoc-version:       0.2+cabal-version:      2.2+name:               latex-svg-pandoc+version:            0.2.1 synopsis:   Render LaTeX formulae in pandoc documents to images with an actual LaTeX @@ -15,15 +15,16 @@   .   This is a fork of https://github.com/liamoc/latex-formulae -homepage:      http://github.com/phadej/latex-svg#readme-license:       BSD-3-Clause-license-file:  LICENSE-author:        Oleg Grenrus, Liam O'Connor-maintainer:    Oleg Grenrus <oleg.grenrus@iki.fi>-copyright:     2020 Oleg Grenrus, 2015-2019 Liam O'Connor-category:      Image-build-type:    Simple-tested-with:   GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.3+homepage:           http://github.com/phadej/latex-svg#readme+license:            BSD-3-Clause+license-file:       LICENSE+author:             Oleg Grenrus, Liam O'Connor+maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>+copyright:          2020 Oleg Grenrus, 2015-2019 Liam O'Connor+category:           Image+build-type:         Simple+tested-with:        GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.3+extra-source-files: CHANGELOG.md  source-repository head   type:     git@@ -36,7 +37,7 @@   ghc-options:      -Wall   exposed-modules:  Image.LaTeX.Render.Pandoc   build-depends:-    , base             >=4.10      && <4.14+    , base             >=4.10     && <4.14     , bytestring       ^>=0.10     , directory        ^>=1.3.0.1     , filepath         ^>=1.4.1.2
src/Image/LaTeX/Render/Pandoc.hs view
@@ -95,7 +95,7 @@     -> PandocFormulaOptions -- ^ Formula display settings     -> Block -> IO Block convertFormulaSvgBlockWith f o (RawBlock format s)-    | format == Format "tex"+    | format == Format "tex" || format == Format "latex"     = do         res <- f (formulaOptions o Nothing) (toString s)         return $ Para $ singleton $ case res of@@ -180,7 +180,7 @@     -> PandocFormulaOptions         -- ^ Formula display settings     -> Block -> IO Block convertFormulaFilesBlockWith f ns bn o (RawBlock format s)-    | format == Format "tex"+    | format == Format "tex" || format == Format "latex"     = do         res <- f (formulaOptions o Nothing) (toString s)         case res of