becheran / mlc

Check for broken links in markup files
MIT License
129 stars 17 forks source link

Only extract anchor targets/link fragments #41

Open hoijui opened 3 years ago

hoijui commented 3 years ago

With a command line switch, like --only-extract-anchors-targets, only that second phase of the process would be done, and the list of anchor targets would be printed.

This can be useful for debugging, for using other tools for doing the other steps, gathering statistics about anchors or the changing of anchors over time, or .. who knows what! It would move mlc closer to the UNIX style of software, and give more power to the users of this software.

becheran commented 3 years ago

Only see a usecase if #40 is implemented, or as part of a rust lib of mlc so others can include it in their projects.

hoijui commented 3 years ago

ah indeed, as a library it also makes a lot of sense! :-)

I personally would also use it as a stand-alone tool, piping into sed, awk, sort and the like.

Anyway.. I am just enlisting my wishes here