Skip to main content

Crate html2md

Crate html2md 

Source

Modules§

extended
rewriter

Functions§

clean_markdown
Called after all processing has been finished
clean_markdown_bytes
Called after all processing has been finished
contains_markdown_chars
Check if a string contains any characters that need markdown escaping. Use this to avoid allocation when no escaping is needed.
replace_markdown_chars
Replace the markdown chars cleanly. Optimized to scan bytes and process in bulk segments.
replace_markdown_chars_opt
Replace the markdown chars cleanly. Optimized to scan bytes and process in bulk segments. Returns None if no changes needed (avoids allocation).
rewrite_html
Main function of this library to come. Rewrites incoming HTML, converts it into Markdown and returns converted string. Incomplete work in progress for major performance increases.
rewrite_html_custom_with_url
Custom variant of rewrite function.
rewrite_html_custom_with_url_and_chunk
Custom variant of rewrite function.
rewrite_html_custom_with_url_streaming
Custom variant of rewrite function streaming async.
rewrite_html_streaming
Main function of this library async streaming. Rewrites incoming HTML, converts it into Markdown and returns converted string. Incomplete work in progress for major performance increases.