theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
110 stars 8 forks source link

Better markdown embedding of thecrag urls #2765

Open brendanheywood opened 7 years ago

brendanheywood commented 7 years ago

What happened? If I embed urls from thecrag back into markdown, I'd expect a better / simpler auto link rather than just a url.

eg see this forum:

https://www.thecrag.com/discussion/1244829924/upper-gara-gorge--grading-around-gara

What you expected: If I paste this url into markdown:

https://www.thecrag.com/climbing/australia/gara-gorge/upper-gara-gorge/route/24439047

Then I think it should link to that page and render something like:

★★ Vulcanology V6

This isn't a full embed, just a simple link with a nicer title. This gives you a much more precise way of linking to exact routes or areas without relying on the auto linking which can be a little off in some cases, and it also adds the extra goodness like the grade and stars for free.

georg-d commented 2 years ago

While this is general, https://github.com/theCrag/website/issues/3383 is about areas

The opposite approach, so typing the link target's name and let the system create the URL for you, is not easy to handle for non-unique names; see e.g. https://github.com/theCrag/website/issues/3941