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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx-markdown-tables-0.0.17.tar.gz
.
File metadata
- Download URL: sphinx-markdown-tables-0.0.17.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bc6d3d400eaccfeebd288446bc08dd83083367c58b85d40fe6c12d77ef592f1 |
|
MD5 | 7240d3da2a215a462b849f66187b4ee7 |
|
BLAKE2b-256 | fb36af0e0a4aa69298b4d664d5176243412ae96bfc207d7e3314e12b3a6f2ccc |
File details
Details for the file sphinx_markdown_tables-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: sphinx_markdown_tables-0.0.17-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd0c30779653e4dd120300cbd9ca412c480738cc2241f6dea477a883f299e04 |
|
MD5 | 04c5c2ae72e9979b7c462e0e77b248a9 |
|
BLAKE2b-256 | 938d8785a36892992582ef8d87c69ab90e26124ab1059c501d93ebecd99d2323 |