|
From: Kalle R. <ka...@hi...> - 2017-03-08 16:04:37
|
Hi there,
I have extended Python Markdown with a new block-processor which
resembles a list, say with a bullet #. I am having problems with making
it interact well with ordinary lists. Consider the following text:
* List begins here
# New list-like thing begins here (1)
This should also be in the new thing. (2)
Currently, the parser
a) parses the list-item with UListProcessor
b) parses the child-block (1) with ListIndentProcessor
c) sends the child-block (1) to be parsed by the NewThingProcessor
d) parses the child-block (2) with ListIndentProcessor
The problem is, NewThingProcessor never gets the opportunity to deal
with the additional content in child-block (2): the child-block (2) is
not in the set of blocks when parsing child-block (1) in c).
Is there a way to make this work?
Kalle
|