badness 0.2.0

An LSP, formatter, and linter for LaTeX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The formatter: parse → lower CST to a Wadler/Prettier [`Ir`](ir::Ir) → print.
//!
//! The MVP is an identity lowering (`format(x) == x`); see [`core`]. The IR
//! engine (`ir`, `printer`, `style`, `context`) is copied ~wholesale from arity
//! and marked EXTRACTION CANDIDATE — keep it close to arity's so the eventual
//! shared-crate extraction stays mechanical. The LaTeX-specific part is the
//! lowering in [`core`].

pub mod check;
pub(crate) mod context;
pub mod core;
pub(crate) mod ir;
pub(crate) mod printer;
pub mod style;

pub use check::{CheckError, CheckResult, check_paths, check_paths_with_style};
pub use core::{FormatError, format, format_node, format_with_style};
pub use style::{FormatStyle, WrapMode};