optional line break at end of list items

This commit is contained in:
Guilhem Fauré 2023-05-09 10:59:57 +02:00
parent c9906c56cc
commit 79a50d5e83

View File

@ -13,8 +13,8 @@ HORIZONTAL_RULE: /- *- *- *- *[\- ]*/
?list: unordered_list
| ordered_list
unordered_list: ( _UL list_item _N )+
ordered_list: ( _OL list_item _N )+
unordered_list: ( _UL list_item _N )* _UL list_item _N?
ordered_list: ( _OL list_item _N )* _OL list_item _N?
list_item: _inline{TEXT}+
_UL: /-\*|-(?!#|---)/
_OL: /-#/