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 在 解析器实现 中
每月下载量 5,592
在 37 个crate中使用了(直接使用28个)
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