Escape of dots in list items #75

Closed
opened 2022-07-04 15:31:42 +02:00 by susnux · 1 comment
susnux commented 2022-07-04 15:31:42 +02:00 (Migrated from github.com)

When there are dots, following a number, as text in list items they must be escaped.
Found by an user of the nextcloud text app: https://github.com/nextcloud/text/issues/2480


E.g. consider this text:

Hello

  • 1. world
  • 2. world
  • 3. world

which is based on this source code:

Hello
* 1\. world
* 2\. world
* 3\. world

But using the WYSIWYG editor it emits this markdown:

Hello
* 1. world
* 2. world
* 3. world

which results in:

Hello

    1. world
    1. world
    1. world

See also this example:
Example within the WYSIWYG editor

When there are dots, following a number, as text in list items they must be escaped. Found by an user of the nextcloud text app: https://github.com/nextcloud/text/issues/2480 --- E.g. consider this text: Hello * 1\. world * 2\. world * 3\. world which is based on this source code: ```markdown Hello * 1\. world * 2\. world * 3\. world ``` But using the WYSIWYG editor it emits this markdown: ```markdown Hello * 1. world * 2. world * 3. world ``` which results in: Hello * 1. world * 2. world * 3. world See also this example: ![Example within the WYSIWYG editor](https://user-images.githubusercontent.com/1855448/177165193-52d90780-c3d0-4b39-b16a-ba783ef27db3.gif)
marijnh commented 2022-07-04 17:19:28 +02:00 (Migrated from github.com)

Attached patch should help.

Attached patch should help.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-markdown#75
No description provided.