termynal.py icon indicating copy to clipboard operation
termynal.py copied to clipboard

Support for code blocks with language specified

Open riga opened this issue 1 year ago • 0 comments

Hi!

I noticed that, when specifying the language of a code block as in the following


```bash
$ git lfs install
Updated git hooks.
Git LFS initialized.
```

the actual command ($ git lfs install here) will not be identified as such, but it looks like it's treated as an output. However, some markdown linters discourage not specifying a language (e.g. MD040).

Maybe support for specifying a language could be added, and thinking further, maybe it could even be used to change the name of the shell in the header of rendered termynal frames (which defaults to "bash" right now). So when people prefer showing commands for zsh, they could specify this by doing


```zsh
$ command goes here
...
```

riga avatar Jul 26 '23 14:07 riga