Replies: 1 comment
-
|
GH works in weird ways. The Parsing block things, the For the second one, spaces are seen, which are indent. So they are taken. So this is as expected! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following example (note there are three space characters before the list item text
item):Below is the parsed syntax tree data. As you can see, in the task list item, two space characters are preserved before the text, while in the regular list item, all leading whitespace is trimmed:
{ "type": "root", "children": [ { "type": "list", "children": [ { "type": "listItem", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": " item" } ] } ] }, { "type": "listItem", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "item" } ] } ] } ] } ] }I'm not sure what causes this inconsistency or whether it should be fixed. Any insights would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions