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

Implement support for italics #197

Closed WesleyKlop closed 3 years ago

WesleyKlop commented 3 years ago

Adds a configuration option for displaying information with the italics style.

Fixes #146

Before: image

After (configured example_variable to use italic instead of underline): image

niklasmohrin commented 3 years ago

Thank you for contributing, this looks good! :rocket:

Could you add an integration test that checks that italic styling works (or enhance one of the styling tests to style something as italic too)? It should be as easy as picking something in the test config.toml to be rendered as italic and updating the expected results

WesleyKlop commented 3 years ago

Sorry for the late reply, will add this when I have some time :)

WesleyKlop commented 3 years ago

Well that was easy :P

niklasmohrin commented 3 years ago

looks good to me @dbrgn