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
File details
Details for the file sphinx-markdown-checkbox-0.1.0.tar.gz
.
File metadata
- Download URL: sphinx-markdown-checkbox-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53353a449228358c8b6831317178dd4f83f22f4a951c06eed447dad07c359b1 |
|
MD5 | 938ea8eda7ccd1cf5a888559931d1079 |
|
BLAKE2b-256 | cc362e1fd51fcdf750e5a83531d950a348d32298ee8101b41786a148c2b73a3a |
File details
Details for the file sphinx_markdown_checkbox-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: sphinx_markdown_checkbox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ee15e206027dd7d5ce8da3c37ec3fd88697e32dca68c308ecb13dc12d8c5b9 |
|
MD5 | 3f970fc8b01b99e41e2798cc371d8228 |
|
BLAKE2b-256 | 921ec2e9f2a70a23a0342ad90346bbfabdd16abaaf65d7e49222bb1ba76aff55 |