Path: blob/main/src/resources/schema/cell-table.yml
12921 views
- name: tbl-cap1schema:2maybeArrayOf: string3description: Table caption45- name: tbl-subcap6schema:7anyOf:8- enum: [true]9- maybeArrayOf: string10description: Table subcaptions1112- name: tbl-colwidths13tags:14contexts: [document-tables]15engine: [knitr, jupyter]16formats: [$pdf-all, $html-all]17schema:18anyOf:19- boolean20- enum: [auto]21- arrayOf: number22description:23short: "Apply explicit table column widths"24long: |25Apply explicit table column widths for markdown grid tables and pipe26tables that are more than `columns` characters wide (72 by default).2728Some formats (e.g. HTML) do an excellent job automatically sizing29table columns and so don't benefit much from column width specifications.30Other formats (e.g. LaTeX) require table column sizes in order to31correctly flow longer cell content (this is a major reason why tables32> 72 columns wide are assigned explicit widths by Pandoc).3334This can be specified as:3536- `auto`: Apply markdown table column widths except when there is a37hyperlink in the table (which tends to throw off automatic38calculation of column widths based on the markdown text width of cells).39(`auto` is the default for HTML output formats)4041- `true`: Always apply markdown table widths (`true` is the default42for all non-HTML formats)4344- `false`: Never apply markdown table widths.4546- An array of numbers (e.g. `[40, 30, 30]`): Array of explicit width percentages.4748- name: html-table-processing49schema:50enum: [none]51description: If `none`, do not process raw HTML table in cell output and leave it as-is525354