Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

Take `--theme` and `--lexer` into account for Markdown and RST #40

Closed wasi-master closed 2 years ago

wasi-master commented 2 years ago

Details

The default value for the theme parameter is ansi dark, so now the new default theme for markdown will be ansi dark, which is consistent with viewing source code. However the default value for the codetheme in both Markdown and RestructuredText is monokai. And the default lexer for RST defaults to python since the RST language is mostly used with python. Renamed the lexer (lexter :)) variable to `` since it will shadow the original lexer argument.

Relevant Issue

Closes https://github.com/Textualize/rich-cli/issues/35