python-markdownify
python-markdownify copied to clipboard
Convert HTML to Markdown
Hello, I would like to package python-markdownify for Gentoo Linux, however I encounter a problem: setuptools tries to install the top-level directory "tests". I am not a Python expert, but...
Using markdownify 0.11.6, and it is working like a charm except for one thing. I'm scraping a site that has a youtube video embedded in an iframe. In this case...
Bullet list entries are not wrapped when setting `wrap=True`.
The following code.... ```python from markdownify import markdownify, ATX clean_html = ''' Google Search ''' md_content = markdownify(clean_html, heading_style=ATX) print(md_content) ``` generates... ```markdown [#### Google Search](https://www.google.com) ``` It should generate...
Example: ```py from markdownify import markdownify as md example_html = 'Example Heading (Heading 2)' mdtxt = md(example_html, heading_style = 'ATX') >>> ## Example Heading (Heading 2\) ``` It doesn't consistently...
I used WHITELIST_TAGS in setting.py but don't work. ``` markdownify.markdownify("sdfaaa", heading_style="ATX", whitelist_tags=["ul", "li"]) ``` please help me :(
html tags may contain symbols like `:` and `-` which are not suitable for the python function names simple name converter allows usage of the methods for tags like `tag:subtag-name`
Add ability to process non-full image url, such as 'path/to/img.png' or '/path/to/img.png'
## Issue Given a html file with a fragment: ```html // article.html /* * more html */ ``` The equivalent md generated will be ```md // article.md [pookie](#pookie) // more...