vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Adding an alias for a fenced code block's language identifier #893

Open austintraver opened 3 years ago

austintraver commented 3 years ago

Background Context

This plugin has support for syntax highlighting in fenced code blocks

Including code completion for the code fence info (language string).


Requested Enhancement

A user could, ideally, specify an alias that maps

Elaboration

I often write the following code block

```sh echo hello ```

which GitHub's README.md file recognizes properly, and will highlight as

echo hello

When I try to load a markdown file that includes code fences whose language identifier is sh, the Markdown Navigator plugin does not recognize them as shell script files.

I'd like the ability to add an alias, where I can say "Hey Markdown Navigator, when you see a code fence whose language identifier issh, that code fence should highlight using shell script syntax.