openstreetmap / openstreetmap-website

The Rails application that powers OpenStreetMap
https://www.openstreetmap.org/
GNU General Public License v2.0
2.1k stars 908 forks source link

Integration of Markdown in Notes #693

Open hno2 opened 10 years ago

hno2 commented 10 years ago

I think it would be nice if you could use Markdown in Notes, too. It will help to make URL more clear, and should not affect anything else!

tomhughes commented 10 years ago

I deliberately didn't do this because it would allow people to add all sorts of content that would render cleanly in a small amount of space.

Notes are supposed to be brief, not massive essays with subheading etc.

hno2 commented 10 years ago

But can't we add any other way to shorten URL ?

Jonobennett commented 10 years ago

What are you trying to achieve? Notes shouldn't really have long URLs pasted into them anyway. The base URL for a PoI's web site is usually enough for the vast majority of cases, and if you think you need to put a very long URL in a note, you may be going about something the wrong way.

tyrasd commented 10 years ago

I do regularly see people posting links to news articles, wikipedia articles, osm objects, images, etc. Sometimes these links are used as a source for a map error or as an indicator to where the problem exactly is.

On some websites long links are being shortened using an ellipsis like this: en.wikipedia.org/wiki/St…

vincentdephily commented 10 years ago

Without going all the way to markdown support (which I agree is probably overkill), it would really help readability to at least render newlines. Inputing paragraphs and bullets but seeing a wall of text displayed is a bit dishartening.

tomhughes commented 10 years ago

I'm pretty sure it will treat a double newline as a paragraph break already.

vincentdephily commented 10 years ago

Oh indeed it does, even single newlines. I'm pretty sure this didn't use to be the case. Sorry for the noise.