python-markdownify
python-markdownify copied to clipboard
Convert HTML to Markdown
I ran into an issue where I was trying to convert html that had invalid floating point `colspan` values. This results in an error being thrown when `markdownify` attempts to...
Special-case use of HTML tags for `sub_symbol` and `sup_symbol`. In particular, this allows setting `sub_symbol=''`, `sup_symbol=''` to use raw HTML in the output when converting subscripts and superscripts.
This is a refinement of #118 (thanks @jsm28!). The current solution escapes every instance of every special character. Although conservative, this can lead to unnecessary escaping. For example, ``` >>>...
Hi, (background: using markdownify to convert RSS feeds’ posts’ HTML to Md to post on Fediverse) is there a chance to get a functionality that flattens down tables into something...
Had a quick look at the code and it seems that there's support for 'colspan' attribute, but not 'rowspan'. Any plans to add support? HTML example ```html table, th, td...
There are various cases in which inline text fails to be separated by (sufficiently many) newlines from adjacent block content. A paragraph needs a blank line (two newlines) separating it...
Fixes #92 and is the only remaining code change I have (as opposed to wrapping Markdownify)
Example HTML: ```html Test heading Test heading 2 ``` The expected rendering result should be like below:  However, with the converted markdown, headings just disappear: ```md ## - Test...
After 97c78ef55b7a5be1d3782d393f3ccfbee1056671 was merged, the newlines in the parsed HTML are no longer collapsed into normal spaces, resulting in erroneous line breaks in the output. ```py import markdownify print(repr(markdownify.markdownify("""\ continuous...