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

Typescript syntax highlighting in markdown #570

Open
matteematt opened this issue Jan 22, 2025 · 1 comment
Open

Typescript syntax highlighting in markdown #570

matteematt opened this issue Jan 22, 2025 · 1 comment

Comments

@matteematt
Copy link

Apologies if this isn't the correct place to raise this issue.

I am using this library via bat and I notice that typescript code isn't correctly highlighted in markdown files.

This issue has been raised on bat's repo here but from what I can tell the issue is here instead.

I have tried following bat's README to install a better syntax file such as from here https://github.com/SublimeText-Markdown/MarkdownEditing/tree/8bd921657d5fdc7b1aef8ec4e9542d3d941a72ab but it didn't seem to work (potentially because Markdown is already a language it's not picking up the new one)

Either way I think it makes sense that the typescript highlighting is supposed by default

@keith-hall
Copy link
Collaborator

Indeed, the plan is for this library to eventually use the latest syntax definitions from Sublime Text, which does correctly highlight Typescript inside Markdown. However, syntect currently lacks support for the latest sublime-syntax features to make this possible, namely:

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

2 participants