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
33
34
35
36
37
38
39
40
41
42
43
44
//! tdoc is a toolkit for building, parsing, formatting, and exporting FTML
//! (Formatted Text Markup Language) documents.
//!
//! The crate is centered around three core concepts:
//! - [`Document`], [`Paragraph`], and [`Span`], which form an in-memory tree
//! representation of FTML content.
//! - Parsers (see [`parser`], [`html`], [`markdown`], and [`gemini`]) that turn external text
//! into that tree.
//! - Writers and formatters (see [`writer`] and [`formatter`]) that turn the tree
//! back into HTML, Markdown, Gemini, or richly styled terminal output.
//!
//! Checklists (Markdown `- [ ]` entries or HTML `<input type="checkbox">`
//! lists) map to [`ParagraphType::Checklist`] nodes that store [`ChecklistItem`]
//! children. Nested checklist items are preserved end-to-end so complex task
//! hierarchies round-trip across every parser and writer.
//!
//! Most applications start by building a [`Document`] manually or converting
//! some source text via [`parse`], manipulate or inspect the tree, and finally
//! render it with [`writer::Writer`] or [`formatter::Formatter`].
pub use Document;
pub use ;
pub use *;
pub use ;
pub use parse;
pub use write;
/// Convenience result type used across parsing and writing APIs.
pub type Result<T> = Result;