Ihor Radchenko <yanta...@gmail.com> writes:
Your patch will fail with the following counterexample (when there is asubheading containing an inlinetask inside current heading):
I wasn't really sure what the intended behavior is, but that makes sense.
I propose an alternative patch. See the attached.
Haven't installed it, but at a glance it stands to reason.