Alir3z4 / Alir3z4/html2text

Honor markdownlint standards

未关闭
#426 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.2k
派生
296
PR 合并指标
30 天内没有已合并 PR

描述


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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。