1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#![deny(missing_docs)]
//! Preprocess math blocks using KaTeX for mdBook.
use std::{
    borrow::Cow,
    collections::HashMap,
    collections::VecDeque,
    fs::File,
    io::Read,
    path::{Path, PathBuf},
};

use mdbook::{
    book::Book,
    errors::Result,
    preprocess::{Preprocessor, PreprocessorContext},
    BookItem,
};
use rayon::iter::*;
use serde_derive::{Deserialize, Serialize};

use {cfg::*, escape::*, preprocess::*, render::*, scan::*};

pub mod cfg;
pub mod escape;
pub mod preprocess;
pub mod scan;

#[cfg(feature = "pre-render")]
pub mod render;

#[cfg(test)]
mod tests;