microsoft / vscode-markdown-tm-grammar

VS Code built-in markdown extension's Textmate grammar
MIT License
64 stars 49 forks source link

Add syntax highlight for Markdown preview new language. #79

Closed Serhioromano closed 4 years ago

Serhioromano commented 4 years ago

I have created extension for Structured Text language support language ID st. I also added prismjs language highlights language ID iecst.

How to mak eit so that in markdown preview in a code block, syntax was highlighted?

mjbvz commented 4 years ago

See https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example for how your extension can contribute this

Serhioromano commented 4 years ago

Thanks @mjbvz that works fine. It does highlight code in markdown source.

2020-10-13_13-43-10

How I can make it to be highlighted in Markdown preview? Second rectangle.

mjbvz commented 4 years ago

This is not currently supported since the preview uses highlight.js