euporie.core.convert.formats.markdown

Contain functions which convert data to markdown format.

Functions

have_modules(*modules)

Verify a list of python modules are importable.

html_to_markdown_py_html2text(data[, width, ...])

Convert HTML to markdown tables using html2text.

html_to_markdown_py_mtable(data[, width, ...])

Convert HTML tables to markdown tables using mtable.

register(from_, to[, filter_, weight])

Add a converter to the centralized format conversion system.

async euporie.core.convert.formats.markdown.html_to_markdown_py_html2text(data: str | bytes, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str

Convert HTML to markdown tables using html2text.

async euporie.core.convert.formats.markdown.html_to_markdown_py_mtable(data: str | bytes, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str

Convert HTML tables to markdown tables using mtable.