Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading digits of numbered lists can be cut off #24158

Closed
non-Jedi opened this issue Jan 4, 2023 · 1 comment
Closed

Leading digits of numbered lists can be cut off #24158

non-Jedi opened this issue Jan 4, 2023 · 1 comment
Labels

Comments

@non-Jedi
Copy link

non-Jedi commented Jan 4, 2023

Steps to reproduce

  1. Send the following markdown message 114. This is a list item numbered "114".

Outcome

What did you expect?

The list item would either appear to be numbered 114 or 1. Can't remember exactly what the markdown spec says here.

What happened instead?

The list item appears to be numbered "14" despite the sent html appearing to correctly number it "114":

2023-01-04_065141

{
  "type": "m.room.message",
  "content": {
    "org.matrix.msc1767.message": [
      {
        "body": "114. This is a list numbered \"114\" which appears to be \"14\" because the spacing for the leading digits serendipitously cuts the numeral off entirely.",
        "mimetype": "text/plain"
      },
      {
        "body": "<ol start=\"114\">\n<li>This is a list numbered &quot;114&quot; which appears to be &quot;14&quot; because the spacing for the leading digits serendipitously cuts the numeral off entirely.</li>\n</ol>\n",
        "mimetype": "text/html"
      }
    ],
    "body": "114. This is a list numbered \"114\" which appears to be \"14\" because the spacing for the leading digits serendipitously cuts the numeral off entirely.",
    "msgtype": "m.text",
    "format": "org.matrix.custom.html",
    "formatted_body": "<ol start=\"114\">\n<li>This is a list numbered &quot;114&quot; which appears to be &quot;14&quot; because the spacing for the leading digits serendipitously cuts the numeral off entirely.</li>\n</ol>\n"
  }
}

Operating system

Void in WSL displayed through VcXsrv but other users reported same effect, and I'm pretty sure they're not running browsers through such a strange setup

Browser information

Mozilla Firefox 107.0.1

URL for webapp

https://develop.element.io

Application version

Element version: 805c90a-react-6b155620e49a-js-7c34deecb6b4 Olm version: 3.2.12

Homeserver

No response

Will you send logs?

No

Miscellaneous praise

It's been quite a long time since I felt the need to submit a bug report against element-web, so great job everyone! Keep up the good work, and know that you're appreciated.

@non-Jedi
Copy link
Author

non-Jedi commented Jan 4, 2023

Somehow missed #14621 in my initial search. Closing as a duplicate although the screenshot in this bug report might give a better idea of exactly what's going on.

@non-Jedi non-Jedi closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant