def find_subthread_end(buf, (row, col)):
    start_line_props = LineProperties(buf[row - 1])
    if not start_line_props.is_diffscuss:
        return row, col

    row, col = find_body_end(buf, (row, col))
    for offset, line in enumerate(buf[row:]):
        line_props = LineProperties(line)
        if line_props.depth <= start_line_props.depth:
            return row + offset, col
    return row, col
Normalize (somewhat) Markdown'd HTML.
dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/support/editor.py/find_subthread_end--crossover with--dataset/ETHPy150Open an0/Letterpress/code/markdown2/test/test_markdown2.py/norm_html_from_html