Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: Syntax highlighting grammar code nu code blocks in markdown preview #192

Open
@LoicRiegel

Description

Hi, first, thank your for this great extension 👍 💯

The syntax highlighting grammar in Nushell scripts (.nu files), but it's not working when you have a preview in VS code of a markdown file containing a nu code block.

I could try to work on it, I've never worked on VS code extensions but I'll figure it out :)
Thanks a lot for your feedback

How to reproduce

Copy this to a markdown file and Open Markdown Preview in VS Code:

# inside md file
```nushell
plugin add target/debug/nu_plugin_example
# or then either restart your current nushell session or run:
plugin use target/debug/nu_plugin_example
```

taken from https://github.com/nushell/nushell/blob/main/crates/nu_plugin_example/README.md

Observe no syntax highlighting

Desired:

Syntax highlighting is on

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

        AltStyle によって変換されたページ (->オリジナル) /