-
Notifications
You must be signed in to change notification settings - Fork 94
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
Preserve bullet used for lists (-, * or +) #3478
Comments
Text reads the markdown source and turns it into data structures for the tiptap editor. In order to preserve properties of the initial markdown they need to be handled in each of the steps involved:
We already loose the information what bullet was used in 1. debug view on demo site[
{
"type": "bullet_list_open",
"tag": "ul",
"attrs": null,
"map": [
0,
2
],
"nesting": 1,
"level": 0,
"children": null,
"content": "",
"markup": "-", // <--- here.
"info": "",
"meta": null,
"block": true,
"hidden": false
},
] So what it would take would be turning this In 2. we'd than have to convert this into an |
Keep in mind that all list items should use the same bullet, e.g. new created items should use the bullet of the previous item. The same is valid for TODO lists. |
@jancborchardt pointed out in the design review:
|
But in the rendering we actually want a unified look, right? |
Frankly... i don't know. I'd be fine with both. Having different bullets might be confusing because there is no way of creating them (thus far) and to me it seems unnecessarily complex. Otoh if the rendered output closer matches the source might be nice. |
Describe the bug
There are different bullets chars that can be used to write lists in markdown. Preserve them when editing the file in text.
To Reproduce
-
chars as bullets.*
.Expected behavior
Preserve the type of bullet used.
The text was updated successfully, but these errors were encountered: