Profile

Command

profile {profile name}

Prupose

Select a formatting profile to apply when generating tables.

Profiles
psv

The default profile, allowing all of psv's features.

markdown

For generating markdown compatible tables.

Rules:

  • only one ruler will be rendered, as the second line of the table
  • each field in the ruler will contain at least 3 - or = characters
  • alignment hints are reduced to left :---, right ---: and center :---: only
gherkin

For generating Data-Tables for behaviour driven development (BDD) scenario definitions.

Rules:

  • no rulers will be generated
Playground The default profile is "psv", which provides... - any number of rulers - all alignment hints incl. numeric and version alignment - sorting hints +----------+-------------------+-----+ | priority | activity | ok | | ------.^ | ----------------- | -:- | | 3 | walk the kids | * | | 4 | play with the dog | | | 2 | go shopping | | | 1 | make dinner | * | +----------+-------------------+-----+ The "markdown" profile is more restrictive... - the table MUST have only one ruler, on the second line of the table - only left, right and center alignment is allowed - each ruler field MUST have at least 3 '-'s each So: - the leading and trailing rulers will be removed - the priority column will become right aligned '---:' - the ok column will be extended to fit markdown's center alignment hint ':---:' - Note: the table will be sorted BEFORE removing the sort hints +----------+-------------------+----+ | priority | activity | ok | | ------.^ | ----------------- | :: | | 3 | walk the kids | * | | 4 | play with the dog | | | 2 | go shopping | | | 1 | make dinner | * | +----------+-------------------+----+ And finally, the "gherkin" profile removes all rulers: +----------+-------------------+----+ | priority | activity | ok | | ------.^ | ----------------- | :: | | 3 | walk the kids | * | | 4 | play with the dog | | | 2 | go shopping | | | 1 | make dinner | * | +----------+-------------------+----+