Alir3z4 / Alir3z4/html2text

Honor markdownlint standards

Ouverte
#426 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
2.2k
Forks
296
Métriques de merge des PR
Aucune PR mergée en 30 j

Description


Html2text version: 2024.2.26
Python version: 3.11.12

[markdownlint](https://github.com/DavidAnson/markdownlint/tree/v0.34.0) rules are used by Visual Studio Code and other editors [and Ruby](https://github.com/markdownlint/markdownlint). 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](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md)
- [MD007 - Unordered list indentation](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md007.md)
- 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](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md027.md)
- [MD027 - Multiple spaces after blockquote symbol](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md027.md)
- This showed up when having lists inside of a blockquote
- [MD026 - Trailing punctuation in heading](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md026.md)
- This happened due to a line break in the middle of a long heading (see #424)
- [MD009 - Trailing spaces](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.