Skip to content

Improper highlighting of custom HTML tags that contain hyphens #667

Description

@lutalli

When I write custom HTML tags in a Markdown file that contain hyphens (like <my-tag></my-tag>), the highlighting works in a wrong way: The words connected by hyphens are highlighted individually, which leads to that, if a word in my custom tag is identical to a standard HTML tag, it's highlighted differently:

Image

Instead, a tag with hyphens should be treated as whole:

Image

I'm not sure if this is a bug of this plugin, but I'm not experiencing this bug while working in an HTML file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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