tealdeer-rs / tealdeer

A very fast implementation of tldr in Rust.
https://tealdeer-rs.github.io/tealdeer/
Apache License 2.0
4.17k stars 123 forks source link

Consider only standalone command names for styling #157

Closed SimplyDanny closed 3 years ago

SimplyDanny commented 3 years ago

In my styling configuration, command names are printed boldly. With that, one part of the TL;DR page for the command make looks like:

make-before

You clearly see the "make" in the command line argument --always-make printed boldly too. I guess this shouldn't be the case. This fix makes sure that only command names with a preceding whitespace character are considered, which leads to:

make-after