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) indented multi-line command (using backslash, line continuation \) every 2nd line only #166

Open
needleshaped opened this issue Oct 15, 2024 · 0 comments

Comments

@needleshaped
Copy link

Type: Bug

  1. Open new markdown file
  2. Paste following:
echo \
ls -la \
ls -la \
  ls -la \
  ls -la \
  ls -la
tar \
    -cvzf \
    archive.tar.gz \
    file1.txt \
    file2.txt \
    file3.txt \
    file4.txt \
    file5.txt
  1. Observe highlighting applied only on every second line.
  2. Remove indent. Highlighting works now.

Screenshot below compares highlighting from Markdown code to highlighting in native shell and Markdown preview.

Image

P.S. I've found, that highlighting inside code block in Markdown is done by https://github.com/microsoft/vscode-markdown-tm-grammar

Version: 1.94.2 (user setup)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

Extensions: none

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