8个重大版本发布
0.9.0 | 2023年10月13日 |
---|---|
0.8.0 | 2019年10月18日 |
0.7.0 | 2018年4月4日 |
0.5.0 | 2017年6月27日 |
0.1.0 | 2016年11月28日 |
在 文本处理 中有404个错误
每月下载量190次
20KB
462 代码行
Marker
这是一个用于查找CommonMark文档中问题的工具。目前,它只能识别损坏的链接(格式错误的URL、不存在的路径等)。
安装Marker
可以使用cargo安装Marker
cargo install marker
运行Marker
如果没有提供任何参数,Marker将在当前工作目录及其子目录中搜索CommonMark文档(所有文件扩展名为.md
的文件)。也可以提供--root
标志来更改搜索位置。
例如,给定当前工作目录中的以下文档
This is a [broken reference].
This [won't load](http://www.acrawford.com/404).
[I cannot type](http:://example.com)
[This file](not_here.md) doesn't exist.
This is an [absolute path](/root.md).
当Marker运行时,将输出以下内容,并且程序将以非零退出状态退出
Found broken reference ([broken reference]) in ./example.md
Found broken url (404 -> http://www.acrawford.com/404) in ./example.md: 404 Not Found
Found malformed URL (malformed url -> http:://example.com) in ./example.md: empty host
Found broken path (bad path -> not_here.md) in ./example.md
Found absolute path (absolute path -> /root.md) in ./example.md
依赖关系
~7–22MB
~302K SLoC