question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Misinterpreted HTML target attribute values like _blank

See original GitHub issue

Hi all, Sometimes I write HTML in my .md and when it’s link, I use target="_blank". This gets misinterpreted on the markdown parser as beginning of the underline. Let’s add exception for the following not to be parsed (including double quotes probably, to differentiate from real occurrences):

"_blank"
"_self"
"_parent"
"_top"

These are all possible values of HTML target attribute.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
reveltcommented, Jun 18, 2016

Hi @burodepeper thanks for the solution.

I actually didn’t even have the language-markdown installed apparently! Once installed, all is well!

It’s strange, why is language-markdown not the default markdown parser in Atom? Your parser is superior and should be bundled with Atom. Who is the best person(s) at Atom to approach regarding this?

0reactions
burodepepercommented, Jun 18, 2016

Nah, not impossible, but to be honest, I like how it has been growing organically. I haven’t promoted it, at least not much. I’ve only mentioned it in a handful places, but people seem to like it, and it is slowly spreading. A blog article would be nice. Send me a link when it’s up, will you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browsing context name must be at least one character long.
The target attribute on <a> elements can't be blank. This attribute defines the browsing context for links, that is, where should the linked...
Read more >
The a target HTML Attribute Explained - freeCodeCamp
The attribute specifies where to open the linked document in an a (anchor) tag. Examples of A target attribute with the value of...
Read more >
HTML target _blank Attribute - Dofactory
The target attribute specifies where the linked page or form response will be opened. The target="_blank" value tells the browser that the page...
Read more >
HTML a target Attribute - W3Schools
Attribute Values ; _blank, Opens the linked document in a new window or tab ; _self, Opens the linked document in the same...
Read more >
Don't Use The Target="_Blank" Link Attribute In These Cases
Using the _blank link attribute will cause the link to open in a new browser window or tab. But it is not as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found