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
File details
Details for the file Gxsphinx-markdown-tables-1.0.8.tar.gz
.
File metadata
- Download URL: Gxsphinx-markdown-tables-1.0.8.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528aaa40fd45debae8b962c6a9b9b590e54b21e0e2c4db976f0213e647e49638 |
|
MD5 | c701d96164ed41a598158e72a2971081 |
|
BLAKE2b-256 | a3ff077232f7d3d38da09c8213f410f586b2dcf8410c747a1aa594b64bd82d87 |