Skip to content

Double line in a comment breaks syntax highlighting  #579

Open
@carlosalberto

Description

@carlosalberto

I have a document and within a comment section I have a "--", which breaks the syntax highlighting for the ENTIRE document:

<!-- Ofending line RIGHT BELOW -->
<!-- Re-generate TOC with `markdown-toc --no-first-h1 -i` -->

Text here is NOT recognized anymore, considered a huge comment section.

If markdown-toc --no-first-h1 -i becomes markdown-toc -no-first-h1 -i then all work as expected.

This is on the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions