D.A.B.Tv0.0.33 Tutorial API DABT Tools ↗ GitHub ↗

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:LEN inside one (as stored by tui.md.fence_before).
  • LINE...: the source lines, in order.

Results

  • TUI_MD_ROWS: array with one styled row per LINE.

Notes

Example

tui.md.fence_before "$(<notes.md)" 40 fence
tui.md.style_lines "$fence" "${visible[@]}"

See also: tui.md.style, tui.md.fence_before