#markdown-converter #convert-html #html #markdown #converter

bin+lib html2md

库和二进制文件,用于将简单的HTML文档转换为Markdown格式

17个版本

0.2.14 2022年12月17日
0.2.13 2021年7月16日
0.2.11 2021年5月15日
0.2.10 2020年8月1日
0.2.4 2018年7月28日

156解析器实现

Download history 1727/week @ 2024-03-14 2182/week @ 2024-03-21 2316/week @ 2024-03-28 1878/week @ 2024-04-04 1923/week @ 2024-04-11 2094/week @ 2024-04-18 1722/week @ 2024-04-25 1697/week @ 2024-05-02 1507/week @ 2024-05-09 1326/week @ 2024-05-16 2085/week @ 2024-05-23 1590/week @ 2024-05-30 1562/week @ 2024-06-06 1469/week @ 2024-06-13 1297/week @ 2024-06-20 1020/week @ 2024-06-27

每月下载量 5,592
37 个crate中使用了(直接使用28个)

GPL-3.0+

58KB
836

HTML2MD

库,用于将简单的HTML文档转换为Markdown格式。实现了Markdown格式,如在其创建页面中所写。

特性

当前支持

  • 列表(和嵌套列表)
  • 标题
  • 引用(和嵌套引用)
  • 段落
  • 水平线
  • 图像和链接
  • 表格
  • 格式化(加粗、斜体、删除线、下划线)
  • 代码

限制

  • 不支持Markdown格式(-/+ 无序列表样式,##/== 标题等。)
  • 尚未检测到代码样式

使用的库

html5ever - Servo引擎HTML解析库,用于将HTML输入转换为DOM

regex - Rust中的PCRE支持,用于修正空白字符

贡献

您可以直接在这里创建合并请求或bug/增强问题,或者通过电子邮件发送格式化的补丁。有关详细信息,请参阅此仓库中的CONTRIBUTING.md文件。

许可协议

Copyright (C) 2018-2019  Oleg `Kanedias` Chernovskiy

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

依赖

~4–11MB
~127K SLoC