#[cfg(test)]
mod tests;
pub mod functions;
pub use functions::parse;
#[deprecated(note = "deprecated export in favor of fml::parse abstraction")]
pub use functions::parser;
use std::fmt::Debug;
use winnow::Stateful;
const ESCAPABLE_TOKENS: &[char] = &[
'\\', '*', '%', '_', '~', '|', '$', '[', ']', '(', ')', '<', '>', '{', '}', '`', '-', '#', '^',
];
#[derive(Debug, Clone, Copy)]
struct State {
is_sol: bool,
is_in_heading: bool,
is_in_hyperlink: bool,
is_in_script: bool,
}
impl Default for State {
fn default() -> Self {
Self {
is_sol: true,
is_in_heading: false,
is_in_hyperlink: false,
is_in_script: false,
}
}
}
type Stream<'i> = Stateful<&'i str, State>;