element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
71 stars 12 forks source link

Dates written with . interpreted as numbered listed (Markdown) #2511

Closed audunmb closed 2 weeks ago

audunmb commented 3 weeks ago

Steps to reproduce

In several languages (at least German and the Nordic languages) days of the month are marked with . . For instance today would be 28. august 2024 in Norwegian. This causes issues if a line starts with a date, as this is interpreted as the start of numbered lists.

My case was that I wrote a list of events in unordred list like this

* 18. september: event 1
* 2. oktober: event 2
* 16. oktober: event 3
* 30. oktober: event 4

This get interpreted as an unordered list followed by an ordered list.

Writing:

18. september: event 1
2. oktober: event 2
16. oktober: event 3
30. oktober: event 4

is interpreted as an ordered list starting at 18., ignoring the rest of the entered days:

  1. september: event 1
  2. oktober: event 2
  3. oktober: event 3
  4. oktober: event 4

Outcome

The expected return would that these are not treated as a list.

This is obviously a Markdown issue, not isolated to Element (Github does the same), but it causes an issue in the affected languages in Element.

Operating system

No response

Application version

Element version: 1.11.76 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

How did you install the app?

No response

Homeserver

No response

Will you send logs?

Yes

MidhunSureshR commented 2 weeks ago

Not really something we can fix but you should be able to escape the dots:

18\. september: event 1
2\. oktober: event 2
16\. oktober: event 3
30\. oktober: event 4