8 breaking releases

0.9.0 Oct 13, 2023
0.8.0 Oct 18, 2019
0.7.0 Apr 4, 2018
0.5.0 Jun 27, 2017
0.1.0 Nov 28, 2016

#302 in Text processing

Download history 76/week @ 2024-01-03 97/week @ 2024-01-10 154/week @ 2024-01-17 128/week @ 2024-01-24 103/week @ 2024-01-31 117/week @ 2024-02-07 136/week @ 2024-02-14 121/week @ 2024-02-21 101/week @ 2024-02-28 199/week @ 2024-03-06 201/week @ 2024-03-13 186/week @ 2024-03-20 203/week @ 2024-03-27 304/week @ 2024-04-03 262/week @ 2024-04-10 215/week @ 2024-04-17

1,009 downloads per month

Apache-2.0

20KB
462 lines

Marker

This is a tool for finding issues in CommonMark documentation. Right now, it only identifies broken links (malformed URLs, non-existent paths, etc.).

Installing Marker

Marker can be installed using cargo:

cargo install marker

Running Marker

When run without any arguments, Marker will search the current working directory and its descendants for CommonMark documents (everything with a file extension of .md). The --root flag can also be provided to change the search location.

For example, given the following document in the current working directory:

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).

When Marker is run, the following is output and the program exits with a non-zero exit status:

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

Dependencies

~7–20MB
~303K SLoC