I was wondering, is there any reason for using "paragraph block*"
instead of "block+"
? Any gotcha?
1 Like
It is common to want the first block in a list item to be a regular paragraph, so that’s the style of list implemented here. You can define other styles, but the commands in this module probably won’t work for those.
1 Like
This is something I’ve stumbled across before and was also interested in the background to, but never actually raised a topic.
Based on this the recommended should probably be to build up your own test suite for list behaviour to protect against changes in the schema-list (since using block+
is not adhering to the API).
Personally I’d be in favour of lifting the constraint on schema-list to expect a leading paragraph
, and instead support block+
. Consumers could then be free to impose additional constraints as needed.
1 Like