How to detect 2 consecutive empty lines?
I was modifying orgmode for the lists and it stops with 2 empty lines:
+ item
new paragraph in item
new paragraph outside of item
So I have
<context name="list" lineEmptyContext="empty"> ... </context>
<context name="empty" lineEmptyContext="#pop#pop"> ... </context>
But highlightLine() jumps into #pop#pop
because the loop consumes all lineEmptyContext
. I can't find a workaround and I wonder if we should add an attribute in context to stop the loop? Something like loopOnLineEmptyContext="false"
.