-
Notifications
You must be signed in to change notification settings - Fork 293
Open
Labels
Description
Html2text version: 2024.2.26
Python version: 3.11.12
markdownlint rules are used by Visual Studio Code and other editors and Ruby. It would be great if html2text generated Markdown that was as compliant these rules as possible. That way, additional cleanup would not be needed.
Common lint rule violations I observed when converting my blog from HTML to Markdown: with html2text
- MD102 - Multiple consecutive blank lines
- MD007 - Unordered list indentation
- There's probably a similar issue with ordered lists, but I didn't see it because I don't use them often :)
- MD022 - Headings should be surrounded by blank lines
- MD027 - Multiple spaces after blockquote symbol
- This showed up when having lists inside of a blockquote
- MD026 - Trailing punctuation in heading
- This happened due to a line break in the middle of a long heading (see Hard wraps break headers #424)
- MD009 - Trailing spaces