Skip to main content

Crate mdtablefix

Crate mdtablefix 

Source
Expand description

Library for normalizing Markdown tables and wrapping text.

Modules:

  • html for converting HTML tables.
  • table for standardizing Markdown table alignment.
  • wrap for paragraph wrapping.
  • lists for renumbering ordered lists.
  • breaks for thematizing horizontal rules.
  • ellipsis for replacing textual ellipses.
  • fences for issues with code block fences
  • footnotes for converting bare footnote links.
  • headings for standardizing Setext headings.
  • code_emphasis for fixing emphasis adjoining inline code.
  • textproc for token-based transformations.
  • process for stream processing.
  • report for line-delta reporting.
  • io for 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§

lazy_regex

Functions§

convert_html_tables
Converts HTML tables embedded in Markdown lines to Markdown table syntax.
html_table_to_markdownDeprecated