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

Indented ~~~sh in table: td in 1. breaks. #106

Open
RokeJulianLockhart opened this issue Jan 31, 2025 · 0 comments
Open

Indented ~~~sh in table: td in 1. breaks. #106

RokeJulianLockhart opened this issue Jan 31, 2025 · 0 comments

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Jan 31, 2025

Description

Syntax highlighting and rendering for an indented Markdown fenced code block (~~~), inside a table: td, inside a CommonMark list entry (1.), breaks.

Examples

  1. Incorrect

    The undermentioned breaks:

    1. Source

      1.	## Conclusion
      
      	<table>
      		<thead>
      			<tr>
      				<th> Type </th>
      				<th> Example </th>
      			</tr>
      		</thead>
      		<tbody>
      			<tr>
      				<th> Variable Assignment </th>
      				<td>
      
      					~~~sh
      					command.bin --argument --value-accepting-argument="escaped value"
      					~~~
      
      				</td>
      			</tr>
      		</tbody>
      	</table>
    2. Syntax Highlighting

      Image

    3. Rendering

      Image

  2. Correct

    The undermentioned does not:

    1. Source

      <table>
      	<thead>
      		<tr>
      			<th> Type </th>
      			<th> Example </th>
      		</tr>
      	</thead>
      	<tbody>
      		<tr>
      			<th> Variable Assignment </th>
      			<td>
      
      				~~~sh
      				command.bin --argument --value-accepting-argument="escaped value"
      				~~~
      
      			</td>
      		</tr>
      	</tbody>
      </table>
    2. Syntax Highlighting

      Image

    3. Rendering

      Image

Environment

  1. Extension

    Identifier: searking.preview-vscode
    Version: 2.3.17
    Last Updated: 2024-12-11, 20:12:25
  2. VS Code

      1. #!/usr/bin/env sh
        rpm -qa code
      2. code-1.96.4-1736991167.el8.x86_64
      1. #!/usr/bin/env sh
        dnf info --refresh code-1.96.4-1736991167.el8.x86_64
      2. Updating and loading repositories:
         Fedora 41 - x86_64 - Updates                         100% |  51.9 KiB/s |  24.1 KiB |  00m00s
         RPM Fusion for Fedora 41 - Nonfree tainted           100% |  50.0 KiB/s |   8.5 KiB |  00m00s
         Fedora 41 openh264 (From Cisco) - x86_64             100% |   3.3 KiB/s | 989.0   B |  00m00s
         google-chrome-canary                                 100% |   5.6 KiB/s |   1.3 KiB |  00m00s
         Copr repo for Koi owned by birkch                    100% |  10.0 KiB/s |   1.5 KiB |  00m00s
         Fedora 41 - x86_64                                   100% |  41.5 KiB/s |  26.8 KiB |  00m01s
         RPM Fusion for Fedora 41 - Nonfree - Updates         100% |  20.2 KiB/s |   8.6 KiB |  00m00s
         RPM Fusion for Fedora 41 - Nonfree                   100% |  62.1 KiB/s |   9.2 KiB |  00m00s
         RPM Fusion for Fedora 41 - Free tainted              100% |  23.3 KiB/s |   7.9 KiB |  00m00s
         ProtonVPN Fedora Beta repository                     100% |  16.8 KiB/s |   3.7 KiB |  00m00s
         RPM Fusion for Fedora 41 - Free                      100% |  19.1 KiB/s |   8.5 KiB |  00m00s
         Visual Studio Code                                   100% |  15.3 KiB/s |   1.5 KiB |  00m00s
         RPM Fusion for Fedora 41 - Free - Updates            100% |  66.1 KiB/s |   8.0 KiB |  00m00s
         warpdotdev                                           100% |   8.4 KiB/s |   1.5 KiB |  00m00s
         google-chrome-canary                                 100% |   8.0 KiB/s |   3.2 KiB |  00m00s
        Repositories loaded.
        Installed packages
        Name            : code
        Epoch           : 0
        Version         : 1.96.4
        Release         : 1736991167.el8
        Architecture    : x86_64
        Installed size  : 381.7 MiB
        Source          : code-1.96.4-1736991167.el8.src.rpm
        From repository : @stored_transaction
        Vendor          : Microsoft Corporation
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