pub struct MarkdownRenderer;Expand description
Renders PDF page content as Markdown.
Implementations§
Source§impl MarkdownRenderer
impl MarkdownRenderer
Sourcepub fn render(
chars: &[Char],
tables: &[Table],
options: &MarkdownOptions,
) -> String
pub fn render( chars: &[Char], tables: &[Table], options: &MarkdownOptions, ) -> String
Render characters and tables as Markdown text.
This is the main entry point. It:
- Extracts words from characters
- Groups words into text blocks
- Classifies blocks as headings, paragraphs, or lists
- Converts tables to GFM syntax
- Interleaves text and tables in reading order
Sourcepub fn render_text(chars: &[Char], options: &MarkdownOptions) -> String
pub fn render_text(chars: &[Char], options: &MarkdownOptions) -> String
Render characters as Markdown text (no tables).
Sourcepub fn table_to_gfm(table: &Table) -> String
pub fn table_to_gfm(table: &Table) -> String
Convert a table to GFM (GitHub Flavored Markdown) table syntax.
Auto Trait Implementations§
impl Freeze for MarkdownRenderer
impl RefUnwindSafe for MarkdownRenderer
impl Send for MarkdownRenderer
impl Sync for MarkdownRenderer
impl Unpin for MarkdownRenderer
impl UnsafeUnpin for MarkdownRenderer
impl UnwindSafe for MarkdownRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more