markdown.renderer.utils.build_wrapped_cell_line_content

markdown.renderer.utils

build_wrapped_cell_line_content(content, parts) -> line_content, line_width

Build wrapped cell line content with range remapping

Given the original cell content (with .plain and .ranges) and parts from table_layout.wrap_text_with_spans, builds a new content table for one wrapped line with ranges remapped to local coordinates. Returns {plain, ranges} and the display width.