Skip to content

(shell) indented multi-line command (using backslash, line continuation \) every 2nd line onlyΒ #166

@needleshaped

Description

@needleshaped

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions