You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Markdown is turned on, sending a message containing only digits followed
by a period produces a formatted_body containing HTML for an ordered list
with a single empty item.
This seems wrong because a user typing something like 2018.<enter> will
almost never mean "an ordered list with an empty item". Furthermore, it is
related to at least two usability bugs that can look very bad to the end user:
Wrong rendering of ordinals with >= 3 digits in Riot Web
This is a separate bug that could (and should) be fixed, but it is also
particularly bad in combination with this bug, because typing something
common like 2018. can trigger it.
They, however, are unsure what to do with it. In a previous Riot Android
version, it at least rendered the list ordinal correctly even when the list
item is empty (like Riot Web), but now it has stopped working again.
I consider this a separate bug too, since empty list items should
nevertheless get their ordinal rendered.
I propose that messages of form ^[0-9]+\.\s*$ are considered a special case
and not treated as Markdown. This seems to me to follow the principle of least
surprise to the average user. In any case, the Riot clients should all behave
the same.
Description
When Markdown is turned on, sending a message containing only digits followed
by a period produces a
formatted_bodycontaining HTML for an ordered listwith a single empty item.
This seems wrong because a user typing something like
2018.<enter>willalmost never mean "an ordered list with an empty item". Furthermore, it is
related to at least two usability bugs that can look very bad to the end user:
Wrong rendering of ordinals with >= 3 digits in Riot Web
This is a separate bug that could (and should) be fixed, but it is also
particularly bad in combination with this bug, because typing something
common like
2018.can trigger it.Riot Android renders such messages as empty, as described in Messages containing only digits followed by a period are invisible riot-android#2285.
They, however, are unsure what to do with it. In a previous Riot Android
version, it at least rendered the list ordinal correctly even when the list
item is empty (like Riot Web), but now it has stopped working again.
I consider this a separate bug too, since empty list items should
nevertheless get their ordinal rendered.
I propose that messages of form
^[0-9]+\.\s*$are considered a special caseand not treated as Markdown. This seems to me to follow the principle of least
surprise to the average user. In any case, the Riot clients should all behave
the same.
An example event:
Steps to reproduce
2018.and press Enter.formatted_bodyas described above.I expect this to produce an
m.textevent without aformatted_body. Instead,it should only have a
bodywith the contents"2018.".Version information
For the web app:
For the desktop app: