ifremaining_contents:# this happens when there is not an empty line after the [!note] or [!tip], better to do here because in md we have gridtables to take care of
if (
remaining_contents
):# this happens when there is not an empty line after the [!note] or [!tip], better to do here because in md we have gridtables to take care of