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个错误

Download history 166/week @ 2024-03-11 185/week @ 2024-03-18 161/week @ 2024-03-25 294/week @ 2024-04-01 293/week @ 2024-04-08 256/week @ 2024-04-15 266/week @ 2024-04-22 279/week @ 2024-04-29 239/week @ 2024-05-06 284/week @ 2024-05-13 193/week @ 2024-05-20 18/week @ 2024-05-27 29/week @ 2024-06-03 38/week @ 2024-06-10 89/week @ 2024-06-17 32/week @ 2024-06-24

每月下载量190

Apache-2.0

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