diff options
author | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-08-16 10:28:45 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-08-16 10:28:45 +0300 |
commit | e60c3dc46e3889f29fac70cc6be1530e2741a2f2 (patch) | |
tree | 445b2e12ae601b283184d860cb1d424e6fbe89cb /src | |
parent | 9e4b36106da5620fcb2985e6a83cc67be3e314c1 (diff) | |
download | pandoc-filter-diagram-e60c3dc46e3889f29fac70cc6be1530e2741a2f2.tar.gz |
fix: deal with Pandoc AST versioning
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pandoc-filter-diagram.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/pandoc-filter-diagram.rs b/src/bin/pandoc-filter-diagram.rs index c2f808a..7a32f63 100644 --- a/src/bin/pandoc-filter-diagram.rs +++ b/src/bin/pandoc-filter-diagram.rs @@ -1,6 +1,6 @@ //! A program that can be used with the pandoc --filter option. -use pandoc_filter_diagram::DiagramFilter; +use pandoc_filter_diagram::{pandoc_ast, DiagramFilter}; use std::io::{Read, Write}; fn main() { @@ -50,6 +50,11 @@ //! } //! ``` +#[cfg(feature = "pandoc_ast_07")] +pub extern crate pandoc_ast_07 as pandoc_ast; +#[cfg(feature = "pandoc_ast_08")] +pub extern crate pandoc_ast_08 as pandoc_ast; + use pandoc_ast::{Block, Inline, MutVisitor, Pandoc}; use std::env; use std::ffi::OsString; |