table_pretty

Convert arrays or objects to a padded Markdown table.

View Markdown

Syntax

{{ value | table_pretty }}{{ value | table_pretty:("Column 1", "Column 2") }}

Usage

  • Optional parameters set column headers.
  • Columns are padded to equal widths and the separator row expands to match.
  • Data shapes and custom headers behave the same as table.

Examples