Skip to content

Commit 8c9e09b

Browse files
committed
Fixed an issue where pandoc-plot did not parse pandoc's version correctly
1 parent 288cf03 commit 8c9e09b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
pandoc-plot uses [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
44

5+
Release 0.7.2.1
6+
---------------
7+
8+
* Fixed an issue where the `pandoc` version was not parsed properly, giving rise to errors when running `pandoc-plot`.
9+
510
Release 0.7.2.0
611
---------------
712

executable/Main.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ toJSONFilterWithConfig = do
159159
-- indicates whether the Pandoc version is new enough or not.
160160
checkRuntimePandocVersion :: IO Bool
161161
checkRuntimePandocVersion = do
162-
let minimumPandocVersion = V.Version [2,10,0,0] []
162+
-- Please note that for some reason, makeVersion [2, 10, 0, 0] > makeVersion [2, 10]
163+
let minimumPandocVersion = V.makeVersion [2, 10]
164+
163165
-- Pandoc runs filters in an environment with two variables:
164166
-- PANDOV_VERSION and PANDOC_READER_OPTS
165167
-- We can use the former to ensure that people are not using pandoc < 2.10

pandoc-plot.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.2
22
name: pandoc-plot
3-
version: 0.7.2.0
3+
version: 0.7.2.1
44
synopsis: A Pandoc filter to include figures generated from code blocks using your plotting toolkit of choice.
55
description: A Pandoc filter to include figures generated from code blocks. Keep the document and code in the same location. Output is captured and included as a figure.
66
category: Text

0 commit comments

Comments
 (0)