python-markdownify
python-markdownify copied to clipboard
Convert HTML to Markdown
Make it possible for custom markdown classes to apply a particular rule to all tags. **Usage** ```python class MarkdownConverter(MarkdownConverter): def convert_all(self, el, text, convert_as_inline): #Do something with text return text...
Markdownify's `strip` configuration option is described as follows: > `strip` - A list of tags to strip. This option can't be used with the `convert` option. However, "strip" has a...
In #184, processing was updated to be non-destructive. A side effect of this code change is that whitespace between comments is no longer removed: ```python import markdownify md = markdownify.MarkdownConverter().convert...
I noticed an inconsistent handling of No-Break Space and Space. Observed behaviour using version 0.14.1: the following HTML: ``` this is a test with whitespaces this is a test with whitespaces...
markdownify converts this: `one two` into: `oneone` because the function chomp returns the text inside the tags as an empty string. One can argue that empty tags like this should...