A Sphinx extension for rendering checkboxes written in markdown
Project description
sphinx-markdown-checkbox
Inspired by sphinx-markdown-tables, this project renders markdown checkboxes as HTML using pycmarkgfm, because Recommonmark does not support markdown checkboxes.
Installation
pip install sphinx-markdown-checkbox
Usage
If you have installed recommonmark
Add sphinx_markdown_checkbox
to extensions
in conf.py
, like so:
extensions = [
'sphinx_markdown_checkbox',
]
Otherwise
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_checkbox
to extensions
, like so:
extensions = [
'sphinx_markdown_checkbox',
]
For more information on Sphinx and markdown, see the Sphinx documentation.
License
This project is available under the GPLv3 license.
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
Hashes for sphinx-markdown-checkbox-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53353a449228358c8b6831317178dd4f83f22f4a951c06eed447dad07c359b1 |
|
MD5 | 938ea8eda7ccd1cf5a888559931d1079 |
|
BLAKE2b-256 | cc362e1fd51fcdf750e5a83531d950a348d32298ee8101b41786a148c2b73a3a |
Hashes for sphinx_markdown_checkbox-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ee15e206027dd7d5ce8da3c37ec3fd88697e32dca68c308ecb13dc12d8c5b9 |
|
MD5 | 3f970fc8b01b99e41e2798cc371d8228 |
|
BLAKE2b-256 | 921ec2e9f2a70a23a0342ad90346bbfabdd16abaaf65d7e49222bb1ba76aff55 |