diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-04-24 15:57:00 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-01 13:15:41 +0100 |
commit | 2d1db750d50b6b68ca31d7ade1bba0316b792aa8 (patch) | |
tree | aab1541f3f26ceeaa130151bb8c10036c8f89ec9 /src/lib.rs | |
parent | 1315a361f8479d29d20128a35665aab2b84e13ed (diff) | |
download | subplot-2d1db750d50b6b68ca31d7ade1bba0316b792aa8.tar.gz |
pandoc_ast: Support multiple versions of pandoc_ast
In order to cope with multiple versions of Pandoc, we need to
support various pandoc_ast versions. This patch introduces
support for both 0.8 and 0.7, defaulting to the older 0.7. If
you use Subplot on a system with a much newer pandoc, then switch
to the 0.8 variant to cope.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5,6 +5,14 @@ //! stakeholders. #![deny(missing_docs)] + +// Handle the multiple pandoc_ast versions + +#[cfg(feature = "pandoc_ast_07")] +extern crate pandoc_ast_07 as pandoc_ast; +#[cfg(feature = "pandoc_ast_08")] +extern crate pandoc_ast_08 as pandoc_ast; + mod error; pub use error::Result; pub use error::SubplotError; |