summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2019-07-09 10:58:31 +0200
committerJan-Erik Rediger <janerik@fnordig.de>2019-07-09 11:11:09 +0200
commit59c551bfb477acb6535e2116958a470520096dfc (patch)
treedfd22b7090835f0e6901d6374802c2f9d1e9c3a6 /src
parent58e4f9f61cfea9006cd62d961b9dcbbf3ee460de (diff)
Properly document that it is a preprocessor
Diffstat (limited to 'src')
-rw-r--r--src/bin/mdbook-mermaid.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs
index 9f173fa..a26437b 100644
--- a/src/bin/mdbook-mermaid.rs
+++ b/src/bin/mdbook-mermaid.rs
@@ -13,7 +13,7 @@ use std::process;
pub fn make_app() -> App<'static, 'static> {
App::new("mdbook-mermaid")
- .about("Build the book from the markdown files with mermaid support")
+ .about("mdbook preprocessor to add mermaid support")
.subcommand(
SubCommand::with_name("supports")
.arg(Arg::with_name("renderer").required(true))
@@ -37,10 +37,8 @@ fn handle_preprocessing() -> Result<(), Error> {
let (ctx, book) = CmdPreprocessor::parse_input(io::stdin())?;
if ctx.mdbook_version != mdbook::MDBOOK_VERSION {
- // We should probably use the `semver` crate to check compatibility
- // here...
eprintln!(
- "Warning: The mdbook-mermaid plugin was built against version \
+ "Warning: The mdbook-mermaid preprocessor was built against version \
{} of mdbook, but we're being called from version {}",
mdbook::MDBOOK_VERSION,
ctx.mdbook_version