Expand description
Library for normalizing Markdown tables and wrapping text.
Modules:
htmlfor converting HTML tables.tablefor standardizing Markdown table alignment.wrapfor paragraph wrapping.listsfor renumbering ordered lists.breaksfor thematizing horizontal rules.ellipsisfor replacing textual ellipses.fencesfor issues with code block fencesfootnotesfor converting bare footnote links.headingsfor standardizing Setext headings.code_emphasisfor fixing emphasis adjoining inline code.textprocfor token-based transformations.processfor stream processing.reportfor line-delta reporting.iofor file helpers, the document boundary, and line-ending preservation.
Re-exports§
pub use breaks::THEMATIC_BREAK_LEN;pub use breaks::format_breaks;pub use code_emphasis::fix_code_emphasis;pub use ellipsis::replace_ellipsis;pub use fences::attach_orphan_specifiers;pub use fences::compress_fences;pub use footnotes::convert_footnotes;pub use headings::convert_setext_headings;pub use io::LineEnding;pub use io::LineEndingCounts;pub use io::count_line_endings;pub use io::detect_line_ending;pub use io::rewrite;pub use io::rewrite_no_wrap;pub use io::serialize_lines;pub use lists::renumber_lists;pub use process::Options;pub use process::process_stream;pub use process::process_stream_no_wrap;pub use process::process_stream_opts;pub use table::reflow_table;pub use table::split_cells;pub use wrap::Token;pub use wrap::tokenize_markdown;pub use wrap::wrap_text;
Modules§
- breaks
- Thematic break formatting utilities.
- code_
emphasis - Fix misplaced emphasis around inline code spans.
- ellipsis
- Replace sequences of three dots with the ellipsis character.
- fences
- Pre-processing utilities for normalizing fenced code block delimiters.
- footnotes
- Footnote normalization utilities.
- headings
- Heading normalization helpers.
- io
- File helpers for rewriting Markdown documents.
- lists
- Ordered list renumbering utilities.
- process
- High-level Markdown stream processing.
- report
- Pure reporting: line deltas and their rendering.
- table
- Markdown table reflow utilities.
- textproc
- Provides helpers for token-based transformations of Markdown lines.
- wrap
- Utilities for wrapping Markdown lines.
Macros§
Functions§
- convert_
html_ tables - Converts HTML tables embedded in Markdown lines to Markdown table syntax.
- html_
table_ to_ markdown Deprecated