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.

Request for Documentation: add advanced link formatting info for complex urls

See original GitHub issue

Mattermost user sven.huester from https://community-daily.mattermost.com has requested the following be documented:

You might need to use yet another way of doing Markdown links with the “reference-style” links to hide that fully.

[link text](a)

[a]: https://example.com

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
svellecommented, Oct 25, 2021

Hey @cwarnermm for sure!

So take for example a wikipedia page with parentheses in the url and you want to create a short link for that say Saw Movie Franchise (took this from a reddit example no particular intention 😄 )

The url looks like this https://en.wikipedia.org/wiki/Saw_(disambiguation)#Films_and_associated_media

A lot of markdown parsers including our own struggle with the parentheses in that URL and will end the custom link before the url is completed resulting in it being cut off to something like this: https://en.wikipedia.org/wiki/Saw_(disambiguation

The example from the opening post will work around that as everything behind the colon is interpreted as the url for [a] which can then be used for the link further up.

So in a real world example it would look like this:

[Saw Movie Franchise](a)
[a]: https://en.wikipedia.org/wiki/Saw_(disambiguation)#Films_and_associated_media
0reactions
Sayanta66commented, Jan 10, 2022

yup!!! I am still searching on the solutions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating hyperlinks - Learn web development | MDN
I'm creating a link to the Mozilla homepage. Adding supporting information with the title attribute. Another attribute you may want to add to ......
Read more >
Working with advanced formatting - GitHub Docs
Formatting like tables, syntax highlighting, and automatic linking allows you to arrange complex information clearly in your pull requests, issues, ...
Read more >
Google URL Structure Guidelines | Documentation
It's a good idea to keep your site's URL structure as simple as possible. Learn more about the URL format recommended by Google,...
Read more >
Links - Usability & Web Accessibility - Yale University
Developers can emulate links with other elements, such as <div> or <span> elements and JavaScript click listeners. But, these kinds of emulated links...
Read more >
URLs - APA Style 6th Edition Blog
The default formatting for links in many word-processing programs, ... In your paper, you begin by providing some background information ...
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