subsume _is_spanmode into _process_html_block