summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@sequoia-pgp.org>2022-08-16 10:28:45 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2022-08-16 10:28:45 +0300
commite60c3dc46e3889f29fac70cc6be1530e2741a2f2 (patch)
tree445b2e12ae601b283184d860cb1d424e6fbe89cb /src
parent9e4b36106da5620fcb2985e6a83cc67be3e314c1 (diff)
downloadpandoc-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.rs2
-rw-r--r--src/lib.rs5
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() {
diff --git a/src/lib.rs b/src/lib.rs
index eb55090..c88fdcc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;