Modules§
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.