Skip to main content

A Python-Markdown extension for converting .csv file to markdown tables inline.

Project description

Python Markdown Extension: csv2md

See: https://pypi.org/project/mdtable/

Settings

Setting Default Description
base_path '.' Base path from where relative paths are calculated.
padding 1 Padding to use in raw formatted markdown table.
delimiter ',' Delimiter character in CSV file.
quotechar '"' Quote character in CSV file.
escapechar '' Escape character in CSV file.

Example Input

[caption](./path/to/my/file.csv)

Example Output (markdown)

|Code              |Prompt                           |Type     |Required|
|------------------|---------------------------------|---------|--------|
|question_type     |Question Type                    |select   |Yes     |
|                  |facet                            |         |No      |
|                  |value                            |         |No      |
|                  |hybrid                           |         |No      |
|facet_field       |Facet Field                      |text     |No      |
|keyword           |Keyword (over heading)           |text     |No      |
|short_description |Short Description (under heading)|memo     |No      |
|long_description  |Long Description (in popup)      |memo     |No      |
|load_answer_images|Load Answer Images               |checkbox |No      |
|disable_when_true |Disable When True                |multitext|No      |

Project details


Download files

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

Source Distribution

pymdown-csv2md-3.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pymdown_csv2md-3.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pymdown-csv2md-3.0.0.tar.gz.

File metadata

  • Download URL: pymdown-csv2md-3.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pymdown-csv2md-3.0.0.tar.gz
Algorithm Hash digest
SHA256 fbe46464f8654a7e3656d4519e568646e46cd58bbb28c7bde70921a46a92377b
MD5 8b3c9e2a5142393df4b2152de2bf6bdf
BLAKE2b-256 09820d082539ebfb82803b76301b4033df561dad61fd380cf65f47660e261f79

See more details on using hashes here.

File details

Details for the file pymdown_csv2md-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: pymdown_csv2md-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pymdown_csv2md-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8016ea7498c61b99215d8d601b26aed109dc06373041201436ed7b186b5804e
MD5 e1d111bace44f1e15928b48c6a1296a7
BLAKE2b-256 fbc2087e878b06b904811164f6677cb6c7c113b16585950399803131b9088f33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page