fixed one_ulist

This commit is contained in:
vicky 2022-03-16 15:26:57 +01:00
parent 043f7c3043
commit 90b2d29409
1 changed files with 3 additions and 4 deletions

View File

@ -210,10 +210,9 @@ one_header = (pp.Literal('#') + ... + pps('#')).add_parse_action(of_type(HeaderT
one_olist = pp.line_start + (
pp.Literal('#') + pps('.') + ...('olist_text') + pp.line_end
).add_parse_action(of_type(EtOlistToken))
# TODO: add a ("name") ?
one_ulist = pp.line_start + \
(pp.Literal('-') + ... + pp.line_end).add_parse_action(of_type(EtUlistToken))
one_ulist = pp.line_start + (
pp.Literal('-') + ...('ulist_text') + pp.line_end
).add_parse_action(of_type(EtUlistToken))
# Final elements
enhanced_text = text # TODO: It's actually text or et_em or et_strong etc..., either recursive or repeated