Skip to main content

Module parser_tools

Module parser_tools 

Source

Re-exports§

pub use comment_options::CommentReply;
pub use comment_options::DocumentComment;
pub use comment_options::DocumentComments;
pub use content_parser::TABLE_ANCHOR;
pub use content_parser::djot_to_plain_text;
pub use djot_escape::djot_round_trip_is_lossy;
pub use djot_escape::escape_djot_inline;
pub use djot_escape::guard_djot_block_start;
pub use djot_escape::needs_djot_escaping;
pub use djot_escape::plain_text_to_djot;
pub use djot_options::DjotExportOptions;
pub use djot_options::DjotImportOptions;
pub use docx_options::DocxExportOptions;
pub use docx_options::DocxHeadingStyle;
pub use epub_options::EpubExportOptions;
pub use image_options::ExportImage;
pub use image_options::ExportImages;
pub use image_options::HtmlExportOptions;
pub use image_options::HtmlImageMode;
pub use latex_options::LatexExportOptions;
pub use mark_options::DocumentMark;
pub use mark_options::DocumentMarks;
pub use mark_options::MAX_BOOKMARK_NAME_LEN;
pub use odt_options::OdtExportOptions;
pub use odt_options::OdtHeadingStyle;
pub use pdf_options::PdfExportOptions;
pub use sentence::Sentence;
pub use sentence::sentence_bounds;
pub use sentence::sentences;
pub use text_options::FORM_FEED;
pub use text_options::HTML_PAGE_BREAK_STYLE;
pub use text_options::MarkdownExportOptions;
pub use text_options::PlainTextExportOptions;
pub use text_options::markdown_page_break;
pub use word_count::CountMethod;
pub use word_count::WordCharCounts;
pub use word_count::count;
pub use word_count::count_djot;

Modules§

comment_options
Comment payload shared by every writer that can anchor a margin note into its output — today DOCX (super::docx_options::DocxExportOptions::comments), and ODT once its own writer reaches this crate. One definition here, reused by both, is the whole point: a DOCX-only struct Comment in document_io and a parallel ODT-only one elsewhere would let the two drift the moment a field’s meaning changed in one but not the other.
content_parser
djot_escape
Turn arbitrary plain text into Djot that renders it back verbatim.
djot_options
Per-feature selection for djot import/export.
docx_options
Page geometry + base typography for DOCX export.
epub_options
Book-level metadata for EPUB export.
fragment_schema
image_options
Image payloads supplied to an export.
latex_options
Preamble + image policy for LaTeX export.
list_grouper
mark_options
Named marks a writer anchors into its output as bookmarks — the third export payload, beside comments and images.
odt_options
Page geometry + base typography for ODT (OpenDocument Text) export.
pdf_options
Page geometry + typography + font bytes for PDF export (via embedded Typst).
sentence
Sentence boundaries — the granularity between a word and a block.
text_options
Opt-ins for the two flowing export formats.
word_count
Pure word/character counting over &str — no document, no store, no threads.