Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Syntax highlight is broken if any word start with _ inside an html tag #146

Open
gfpacheco opened this issue Apr 9, 2016 · 2 comments
Open

Comments

@gfpacheco
Copy link

The syntax highlighter must be thinking that the _ means it's gonna be italic:

# GitHub Markdown

<a href="#">A working html tag</a>
<a href="#" target="_blank">From here on the syntax highlight is broken</a>

PS: I just realized that the GitHub syntax highlighter also renders it wrong in this case. I'm also telling them that.

@Calrion
Copy link

Calrion commented May 7, 2016

This also occurs with pre-formatted text sections.

As an example, the following pre-formatted section breaks highlighting:

Folder/
    _specialFolder/
    AnotherFolder/

In Atom with the Github-flavoured Markdown language specified, this text will be highlighted as though formatted with italics; the preview (which I understand is handled in a different package) formats everything correctly.

atom

Backslash escapes do not resolve the issue; the formatting is correct, but the preview displays the escaping backslash.

PS: In my case, it seems the GitHub syntax highlighter is not also broken (or else they fixed it!).

@dahlbyk
Copy link

dahlbyk commented Apr 29, 2017

Related: #198

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants