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

Strings in rendered fenced Markdown code blocks wrap on to newlines. #101

Open
RokeJulianLockhart opened this issue Dec 8, 2024 · 0 comments

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Dec 8, 2024

Examples

An example is undermentioned:

~~~pwsh
#!/usr/bin/env -S pwsh
#Requires -PSEdition 'Core'
#Requires -Version 7.5

Install-Module -Name 'Microsoft.WinGet.Client'  # `-RequiredVersion 1.9.25190`
Get-WinGetPackage 'Microsoft.MediaCreationTool' # `-Version "$Unknown"`

If ($IsWindows) { Start-Process "$Env:SystemDrive\Users\$([Environment]::UserName)\AppData\Local\Microsoft\WinGet\Packages\Microsoft.MediaCreationTool_Microsoft.Winget.Source_8wekyb3d8bbwe" }
~~~

This renders with the string broken into a new line:

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