tui.style_lines
tui.md.style_lines FENCE LINE...
Styles consecutive source lines for an editor overlay: one row per LINE, characters unchanged, delimiters in the marker class.
Parameters
FENCE: the code-fence state in force before the first line:""outside a fence,CHAR:LENinside one (as stored bytui.md.fence_before).LINE...: the source lines, in order.
Results
TUI_MD_ROWS: array with one styled row perLINE.
Notes
- Rows of lines outside fences are memoized. The memo is dropped when
tui.md.style_setortui.md.monochange the style table.
Example
tui.md.fence_before "$(<notes.md)" 40 fence
tui.md.style_lines "$fence" "${visible[@]}"
See also: tui.md.style, tui.md.fence_before
