adocers_render_core/lib.rs
1//! What the AsciiDoc back ends have in common.
2//!
3//! [`adocers-html`](https://crates.io/crates/adocers-html) renders a document
4//! as a page and [`adocers-typst`](https://crates.io/crates/adocers-typst)
5//! typesets it as a PDF. Neither depends on the other, and this crate is what
6//! they agree on: the section numbers a document shows, the attributes it puts
7//! under its title, the icon an admonition is marked with, and the SVG a
8//! mermaid block is drawn as.
9//!
10//! Everything here is about the *document*, not about either output format —
11//! which is why both back ends can read it and why a third one could.
12
13#![warn(clippy::print_stderr, clippy::print_stdout)]
14
15pub mod escape;
16pub mod icons;
17#[cfg(feature = "mermaid")]
18pub mod mermaid;
19pub mod metadata;
20pub mod numbering;