[openstreetmap/openstreetmap-website] Nested lists are incorrectly displayed in user messaging interface (#2103)
Nutchanon Wetchasit
notifications at github.com
Wed Jan 9 07:57:13 UTC 2019
I ran into this problem when I was writing a rather long reply to another mapper's message. I have drafted my message with [original Markdown][1]; but when I previewed the message before sending, I found several problems with [OpenStreetMap.org](https://www.openstreetmap.org/)'s Markdown implementation around its interpretation of nested numbered/bullet list.
This resulted in me having fumble for several minutes to find _partial_ workaround (see below), before I could actually send the message in a relatively unmangled form.
Exact steps to reproduce:
- Start a browser with a new private browsing session (or with cookies cleared) and JavaScript enabled.
- Visit your own OSM user page as anonymous user.
- Click _Send Message_.
- You will be prompted to log in: enter your OSM user and password.
- <q>Send a new message</q> page will appear.
- Enter `These are nested lists...` in the _Subject_ field.
- **Copy** text from [this Gist](https://gist.githubusercontent.com/nachanon/320b8a0473ac0658a8f2fe8ddd9da6c7/raw/8c94d376792af491c71795a2f225e5212ed046eb/nestedlist.md) **and paste** it into the _Body_ field. (Warning: Tab indentation on blank lines are totally intended)
- Click the _Preview_ button.
The preview would show something like this:

Then, compare it to an output from [the original Markdown][1]:

You would see that on OSM messaging interface...
- _Bullet_ lists that are nested inside numbered list **are mistakenly displayed as _numbered_ lists**. **(No workaround)**
- Sub lists with _equally-indented_ blank lines before and after them **are mistakenly displayed as code snippet _and_ excluded from the list**. (Workaround: remove these lines before sending the message)
Please investigate and fix.
Browser: Opera 11.64 (Win32)
System: Microsoft Windows XP Professional SP3
### Notes ###
- This is not specific to preview: the same message sent to myself also exhibit the same problem when viewed in the on-site inbox.
- This is not specific to browser: result obtained from Pale Moon 25.8.1 (GNU/Linux 32-bit) is the same.
- The word _Markdown_ on the messaging page's help panel actually links to [the original Markdown][1]. So, compatibility is expected.
[1]: https://daringfireball.net/projects/markdown/
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2103
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190108/963ab243/attachment.html>
More information about the rails-dev
mailing list