markdown_ppp/lib.rs
1//! # markdown-ppp
2//!
3//! Feature-rich Markdown Parsing and Pretty-Printing library.
4//!
5//! This crate provides comprehensive support for parsing CommonMark + GitHub Flavored Markdown (GFM)
6//! and converting it to various output formats including Markdown, HTML, and LaTeX.
7
8/// Fully-typed Abstract Syntax Tree (AST) for CommonMark + GitHub Flavored Markdown.
9pub mod ast;
10
11/// Markdown parser for CommonMark + GFM.
12///
13/// Parse Markdown text into an AST using [`parse_markdown`](parser::parse_markdown).
14#[cfg(feature = "parser")]
15pub mod parser;
16
17/// Markdown pretty-printer for formatting AST back to Markdown.
18///
19/// Render AST to Markdown using [`render_markdown`](printer::render_markdown).
20#[cfg(feature = "printer")]
21pub mod printer;
22
23/// HTML renderer for converting Markdown AST to HTML.
24///
25/// Render AST to HTML using [`render_html`](html_printer::render_html).
26#[cfg(feature = "html-printer")]
27pub mod html_printer;
28
29/// LaTeX renderer for converting Markdown AST to LaTeX.
30///
31/// Render AST to LaTeX using [`render_latex`](latex_printer::render_latex).
32#[cfg(feature = "latex-printer")]
33pub mod latex_printer;
34
35/// AST transformation utilities for manipulating parsed Markdown.
36#[cfg(feature = "ast-transform")]
37pub mod ast_transform;