Repository navigation
Conversation
|
@robinst Would you please be able to review this? |
|
Ping @robinst, would you please be able to review this? Thanks! |
|
Note that this doesn't really have anything to do with lists, it's the same for a paragraph like this: The reason for this is in the spec, leading spaces are skipped: https://spec.commonmark.org/0.31.2/#example-222 Having said that, we should probably have a way to preserve these skipped spaces in the nodes somehow. Some ideas:
We also need to consider interaction with e.g. |
|
Closing this as it's not the right approach, see comment above and #301. |
When there are no
blockParserFactories, leading spaces should be preserved. Here's a use case:Input
When this is parsed with a Parser without any
enabledBlockTypes, before this PR, it results in this:But it should preserve the list hierarchy with the leading whitespace.