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

shell codeblocks do not match syntax highlight for a .sh file. #156

Closed
a-stewart opened this issue Feb 22, 2024 · 4 comments
Closed

shell codeblocks do not match syntax highlight for a .sh file. #156

a-stewart opened this issue Feb 22, 2024 · 4 comments

Comments

@a-stewart
Copy link
Contributor

a-stewart commented Feb 22, 2024

Consider this basic shell file:

image

The bash file is syntax highlighted correctly, but when the same content is embedded in markdown the syntax highlighting fails.

@RedCMD
Copy link
Contributor

RedCMD commented Jun 26, 2024

this issue should be moved to the https://github.com/jeff-hykin/better-shell-syntax repo

@a-stewart
Copy link
Contributor Author

The thing is the syntax highlighting is fine in a shell file, it is only when it is embedded in markdown that it becomes an issue.

@RedCMD
Copy link
Contributor

RedCMD commented Jul 1, 2024

yes
but it's still up to the shell author to fix
there's not much Markdown can do, if anything to fix it

@mjbvz
Copy link
Contributor

mjbvz commented Jul 2, 2024

Yes typically issues with embedded grammars are caused by incorrect use of $base or $self in the grammar. We can't fix that here

Please move this issue over to the shell grammar so they can investigate

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

3 participants