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

Consume Markdown (syntax highlighting and rendering) extensions. #100

Open
RokeJulianLockhart opened this issue Dec 8, 2024 · 1 comment

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Dec 8, 2024

Context

The native VS Code Markdown previewer supports extensions adding syntax highlighting to the editor and previewer. An example is marketplace.visualstudio.com/items?itemName=nico-castell.linux-desktop-file.

Problem

This extension doesn't appear to support these:

  1. Syntax highlighting doesn't appear for desktop code blocks.

    As an explicitly ~~~desktop syntax-highlighted code block in a .Markdown file:

    Screenshot_20241220_133945

    As a .desktop file:

    Screenshot_20241220_133937

  2. Although the syntax highlighting appears for mermaid code blocks, they do not render:

    Screenshot_20241220_133824

Reproduction

  1. Install code-1.95.3-1731513157.el8.x86_64.
  2. Install marketplace.visualstudio.com/_apis/public/gallery/publishers/searKing/vsextensions/preview-vscode/2.3.14/vspackage.

Solution

Support them.

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
@RokeJulianLockhart

This comment was marked as resolved.

@RokeJulianLockhart RokeJulianLockhart closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2024
@RokeJulianLockhart RokeJulianLockhart changed the title Consume Markdown syntax highlighting extensions. Consume Markdown (syntax highlighting and rendering) extensions. Dec 13, 2024
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