Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for code blocks with language specified #11

Open
riga opened this issue Jul 26, 2023 · 0 comments
Open

Support for code blocks with language specified #11

riga opened this issue Jul 26, 2023 · 0 comments

Comments

@riga
Copy link

riga commented Jul 26, 2023

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
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant