Skip to main content

A Sphinx extension for rendering tables written in markdown

Project description

sphinx-markdown-tables

A Sphinx extension for rendering markdown tables.

Sphinx supports markdown via Recommonmark, which does not support tables. This extension provides them.

It renders markdown tables as HTML, as defined by python-markdown

Installation

pip install sphinx-markdown-tables

Usage

Quick version

Add sphinx_markdown_tables to extensions in conf.py, like so:

extensions = [
    'sphinx_markdown_tables',
]

Longer version

Sphinx needs to be configured to use markdown. First, you need recommonmark:

pip install recommonmark

In conf.py, configure source_parsers and source_suffix:

source_parsers = {
    '.md': 'recommonmark.parser.CommonMarkParser',
}

source_suffix = ['.rst', '.md']

Once Sphinx is configured appropriately, add sphinx_markdown_tables to extensions, like so:

extensions = [
    'sphinx_markdown_tables',
]

For more information on Sphinx and markdown, see the Sphinx documentation.

License

This project is available under the GPLv3 license. For other licensing arrangements contact Ryan Fox.

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

sphinx-markdown-tables-0.0.6.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

sphinx_markdown_tables-0.0.6-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-markdown-tables-0.0.6.tar.gz.

File metadata

File hashes

Hashes for sphinx-markdown-tables-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6f456c4215898613f5a9f8f4b9b493df196f92f7a2f1c5654c7ea78fb73a6189
MD5 ee27d07c402b4684e5150581f9d3ecea
BLAKE2b-256 d6b5eb3e2cb2031bce2593473d6066481e848a382c1368fa1ed9a3832a2fe718

See more details on using hashes here.

File details

Details for the file sphinx_markdown_tables-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_markdown_tables-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1c40ef39e58de4c98eee2bc2c260194d5eb2d8a8405238816a60378ef2408b82
MD5 120a63331794b7477fde7b0022d66a0e
BLAKE2b-256 37816b3fc4258b86fd20d6fd539a31b11b82973ed017aefb95daa5cc2b2d5f3f

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