Skip to content

Specify perl for fenced blocks in markdown #152

@mrsdizzie

Description

@mrsdizzie

I notice in Neovim that code blocks in hover definitions don't have any syntax highlighting, yet in VS Code they are syntax highlighted. It looks like the markdown PerlNavigator sends back for these has fenced code blocks but with no language specified.

Maybe VS Code uses the language of the file open to automatically highlight the code blocks? Would it be possible to default to using ```perl for these? If so, injected syntax highlighting should work in Neovim.

Currently in neovim:
Screenshot 2024-12-18 at 20 09 28

The same hover in VS Code:
Screenshot 2024-12-18 at 20 10 06

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions