Open DarkFighter opened 10 years ago
ok, here is my dirty solution: https://gist.github.com/DarkFighter/0095077337449fdfe1ba it works but strange situations with lists are still possible
@kzykhys question: why do we need $this->markdown->emit('block') in processListItems method?
@kzykhys and yes, more tests are needed
why do we need $this->markdown->emit('block') in processListItems method?
* a list item can contain
> block elements
Tested with your input on http://ciconia.kzykhys.com/ :
<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
<p>test<br>
1. item1<br>
2. item2<br>
3. item3</p>
<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
Are you using 1.0.x ?
yes, i'm using 1.0.1
this code works wrong:
1. item1
1. asd
1.asdsad
2. ddd
2. ddd
2. item2
3. item3
Input:
Output: