Skip to main content

sphinx_ultra/doctree/
kinds.rs

1//! docutils element tagnames.
2//!
3//! Names ARE the wire format: `pformat` prints them and the differential
4//! fixture (tests/fixtures/doctree_differential.json) compares them
5//! byte-for-byte against docutils 0.22.4 output. Later waves append consts;
6//! never rename one without regenerating the fixture.
7
8/// Sentinel kind for text leaves; never printed as a tag.
9pub const TEXT: &str = "#text";
10
11pub const DOCUMENT: &str = "document";
12pub const SECTION: &str = "section";
13pub const TITLE: &str = "title";
14pub const PARAGRAPH: &str = "paragraph";
15pub const TRANSITION: &str = "transition";
16pub const BULLET_LIST: &str = "bullet_list";
17pub const ENUMERATED_LIST: &str = "enumerated_list";
18pub const LIST_ITEM: &str = "list_item";
19pub const DEFINITION_LIST: &str = "definition_list";
20pub const DEFINITION_LIST_ITEM: &str = "definition_list_item";
21pub const TERM: &str = "term";
22pub const CLASSIFIER: &str = "classifier";
23pub const DEFINITION: &str = "definition";
24pub const BLOCK_QUOTE: &str = "block_quote";
25pub const ATTRIBUTION: &str = "attribution";
26pub const LITERAL_BLOCK: &str = "literal_block";
27pub const DOCTEST_BLOCK: &str = "doctest_block";
28pub const LINE_BLOCK: &str = "line_block";
29pub const LINE: &str = "line";
30pub const COMMENT: &str = "comment";
31pub const TARGET: &str = "target";
32pub const SYSTEM_MESSAGE: &str = "system_message";