There's one annoying bug:
Try to do write a list and then add some code. If you don't place another line of text in between, the code section breaks and the first and last lines jump out of the formatting:
Testcases:
- This is
- Some list
with items
// And some code if ( list( $code, $items ) ) break;
And another unordered list followed by some short code lines
- A list
- that will
- break stuff
- again - even when showing
the code line intended
switch ( 'formatting' ) { case 'bug' : return array( 'list', 'code' ); break; case 'default' : return print 'Mooo'; break; } echo "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.";
I'm not sure if I've to add feature-request to get this fixed.