Project:
Thinklab Meta [meta]

Markdown bug: hyperlink with title attribute causes excision


There's a bug where, on occasion, a link with title attribute causes some text to be excised.

For example, the following markdown:

Switching relationship types to verbs also makes sense as part of our [migration to neo4j](https://think-lab.github.io/discussion/using-the-neo4j-graph-database-for-hetnets/112). The neo4j convention is to use verbs for relationship types. In fact, a neo4j company [explains relationships](https://www.graphstory.com/elements-of-a-graph-database "Elements of a Graph Database · Graph Story") by saying:

Renders as:

Switching relationship types to verbs also makes sense as part of our migration to neo4j by saying:

Good find! The source of the bug may be in the original markdown parser we used. This may take a while for us to resolve and we'd like to ask that you just avoid using titles in links for now. Removing the following will solve the problem:

"Elements of a Graph Database · Graph Story"

Okay, I suspect the bug has to do with the preceding internal Thinklab link. Check out the malformed popup when you hover over "migration to neo4j" above.

We were able to track down and correct the bug.

The bug had been reported here: https://github.com/evilstreak/markdown-js/issues/162

And corrected by Discourse here: https://meta.discourse.org/t/weird-markdown-bug-when-using-inline-links-with-title/16926

 
Status: Completed
Labels
  Technical Issue
Views
32
Topics
Cite this as
Daniel Himmelstein, Jesse Spaulding (2016) Markdown bug: hyperlink with title attribute causes excision. Thinklab. doi:10.15363/thinklab.d163
License

Creative Commons License

Share