Skip to main content

Markdown tables convertor to a multiline format.

Project description

# Multiline tables for Foliant

Multiline tables preprocessor converts tables in project markdown files to multiline format (very useful especially for pandoc processing). It helps to make tables in doc and pdf formats more proportional — column with more text in it will be more wide. Also it helps whith processing of extremely wide tables with pandoc.

## Installation

$ pip install foliantcontrib.multilinetables

## Config

To enable the preprocessor with default options, add `multilinetables` to `preprocessors` section in the project config:

- multilinetables

The preprocessor has a number of options (best values set by default):

- multilinetables:
min_table_width: 100
keep_narrow_tables: true
table_columns_to_scale: 3
enable_hyphenation: false
hyph_combination: '<br>'
- docx
- pdf

: Wide markdown tables will be shrinked to this width in symbols.

: If `true` narrow tables will not be stretched to minimum table width.

: Minimum amount of columns to process the table.

: Switch breaking text in multiline tables with the tag set in `hyph_combination`.

: Custom tag to break a text in multiline tables.

: Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.

## Usage

Just add preprocessor to the project config and enjoy the result.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for foliantcontrib.multilinetables, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size foliantcontrib.multilinetables-1.1.3.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page