pub mod config;
pub mod preprocessor;
pub use mdbook_lint_core::*;
pub use config::Config;
pub use preprocessor::MdBookLint;
pub const CLI_VERSION: &str = env!("CARGO_PKG_VERSION");
pub const CLI_NAME: &str = "mdbook-lint";
pub const CLI_DESCRIPTION: &str = "A fast markdown linter for mdBook projects";
pub mod cli_prelude {
pub use crate::{
Config,
MdBookLint,
prelude::*,
};
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_cli_version_info() {
assert_eq!(CLI_NAME, "mdbook-lint");
assert!(CLI_DESCRIPTION.contains("mdBook"));
}
#[test]
fn test_core_functionality_available() {
let engine = create_engine_with_all_rules();
let rules = engine.available_rules();
assert!(
rules.len() >= 60,
"Expected at least 60 rules, got {}",
rules.len()
);
}
}