Skip to content

Commit

Permalink
fix(docs): minimum pandoc version is actually 2.8, not 1.14 (#90)
Browse files Browse the repository at this point in the history
Defaults files (`--defaults`/`-d`) were introduced in
[2.8](https://pandoc.org/releases.html#pandoc-2.8-2019-11-22)
  • Loading branch information
max-heller authored May 4, 2024
1 parent a0c63f6 commit 736769c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ See [Rendered Books](#rendered-books) for samples of rendered books.
- [Install `pandoc`](https://pandoc.org/installing.html)

> **Note**: `mdbook-pandoc` works best with Pandoc 2.10.1 or newer.
> Older versions (as old as 1.14) are partially supported, but will result in degraded output.
> Older versions (as old as 2.8) are partially supported, but will result in degraded output.
>
> If you have an old version of Pandoc installed (in particular, Ubuntu releases before 23.04 have older-than-recommended Pandoc versions in their package repositories), consider downloading a newer version from Pandoc's installation page.
Expand Down
6 changes: 3 additions & 3 deletions src/pandoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pub use renderer::{Context as RenderContext, OutputFormat, Renderer};

/// Minimum compatible version of Pandoc
const MINIMUM_VERSION: Version =
// commonmark input format introduced in 1.14
// Defaults files introduced in 2.8
Version {
major: 1,
minor: 14,
major: 2,
minor: 8,
patch: 0,
};

Expand Down

0 comments on commit 736769c

Please sign in to comment.