-
Notifications
You must be signed in to change notification settings - Fork 270
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
Handle <ol start=…>
#59
Comments
The Zulip Markdown message source that produces the example HTML above is: 9999. Fjfjdj
10000. Fjdjdj |
As part of this issue, the changes to HTML parsing should get tests in Ideally the changes to (Edited 2023-07-10 with updates.) |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This was reported as a bug in beta feedback: https://chat.zulip.org/#narrow/channel/48-mobile/topic/numbered.20lists.20rendering.20wrong/near/2018415 |
Hi, I have started working on this issue. Sharing the screenshots shortly. |
Hi, I have raised PR #1329 for this issue, PTAL. Thanks! |
An
<ol>
element in Zulip HTML can have thestart
attribute, like so:On Zulip web, this renders like so:

(The fact that the numbers are cut off at the left is a bug that's getting fixed: zulip/zulip#25063.)
Currently we ignore
start
and always start the numbering at 1. We should instead respectstart
when we see it.This means:
ListNode
should get a bit more information to recordstart
. Possibly make it abstract and give it subclassesOrderedListNode
andUnorderedListNode
, sincestart
won't make sense on the latter.ListNodeWidget
should act on that information.The text was updated successfully, but these errors were encountered: