savioxavier/termlink

Force non-linking behavior?

skyzyx opened this issue · 2 comments

I'm building a CLI app that has the ability to generate usage documentation for itself as Markdown.

Under normal circumstances — e.g., using the CLI on terminal — I want the linking behavior, which works.

However, when I generate Markdown containing the descriptions of the CLI commands (which contain the links), I get the raw ASCII output for the terminal.

For regular expressions, the �[32;49m�]8;;https://github.com/google/re2/wiki/Syntax�RE2 syntax�]8;;��[m�[0m is supported.

What I'd like to have is something that would allow me to programmatically force the non-linked behavior, so that the Markdown has this instead.

For regular expressions, the RE2 syntax (https://github.com/google/re2/wiki/Syntax) is supported.

I can do it by running the generation command in a completely different terminal (e.g., Apple's Terminal.app), but it'd be nice if I didn't have to.

Made a fix!

See #6 and let me know if you have any suggestions

Closed via #6