pandoc-pyplot 2.1.1.0 → 2.1.1.1
raw patch · 4 files changed
+15/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- README.md +8/−1
- executable/Main.hs +1/−2
- pandoc-pyplot.cabal +1/−1
CHANGELOG.md view
@@ -2,6 +2,11 @@ pandoc-pyplot uses [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +Release 2.1.1.1 +--------------- + +* Fixed a critical bug where pandoc-pyplot would interpret input from pandoc as a malformed command-line flag. + Release 2.1.1.0 ---------------
README.md view
@@ -4,6 +4,12 @@ `pandoc-pyplot` turns Python code present in your documents into embedded Matplotlib figures. +* [Usage](#usage) +* [Features](#features) +* [Installation](#installation) +* [Running the filter](#running-the-filter) +* [Usage as a Haskell library](#usage-as-a-haskell-library) + ## Usage The filter recognizes code blocks with the `.pyplot` class present. It will run the script in the associated code block in a Python interpreter and capture the generated Matplotlib figure. @@ -120,7 +126,7 @@ *New in version 2.1.0.0* -To avoid repetition, `pandoc-pyplot` can be configured using simple YAML syntax. `pandoc-pyplot` will look for a `pandoc-pyplot.yml` file in the current working directory: +To avoid repetition, `pandoc-pyplot` can be configured using simple YAML syntax. `pandoc-pyplot` will look for a `.pandoc-pyplot.yml` file in the current working directory: ```yaml # You can specify any or all of the following parameters @@ -134,6 +140,7 @@ These values override the default values, which are equivalent to: ```yaml +# Defaults if no configuration is provided. interpreter: python directory: generated/ format: png
executable/Main.hs view
@@ -37,12 +37,11 @@ parseFlag :: [String] -> Maybe Flag parseFlag s - | null s = Nothing | head s `elem` ["-h", "--help"] = Just Help | head s `elem` ["-v", "--version"] = Just Version | head s `elem` ["-f", "--formats"] = Just Formats | head s `elem` ["-m", "--manual"] = Just Manual - | otherwise = Just InvalidFlag + | otherwise = Nothing -- This is the regular input from pandoc flagAction :: Flag -> IO () flagAction f
pandoc-pyplot.cabal view
@@ -1,5 +1,5 @@ name: pandoc-pyplot -version: 2.1.1.0 +version: 2.1.1.1 cabal-version: >= 1.12 synopsis: A Pandoc filter to include figures generated from Python code blocks description: A Pandoc filter to include figures generated from Python code blocks. Keep the document and Python code in the same location. Output from Matplotlib is captured and included as a figure.