sphinx-markdown-tables is a Sphinx extension designed to render tables written in GitHub Flavored Markdown (GFM) within Sphinx documentation projects. It enables users to utilize familiar Markdown table syntax for documentation generated by Sphinx. The current version is 0.0.17. While not on a strict release cadence, it receives updates for bug fixes and compatibility with new Sphinx versions.
pip install sphinx-markdown-tablesNo compatibility data collected yet for this library.
To use `sphinx-markdown-tables`, add it to the `extensions` list in your Sphinx `conf.py`. This example also includes `myst_parser`, which is commonly used to enable Sphinx to parse Markdown files (`.md`). After configuration, you can use GitHub Flavored Markdown (GFM) table syntax in your Markdown source files, and Sphinx will render them as HTML tables.
Ensure you have `myst_parser` (or similar) installed (`pip install myst-parser`) and added to your `extensions` list in `conf.py` alongside `sphinx_markdown_tables`. Also configure `source_suffix` to include `.md`.
If issues arise after a Sphinx upgrade, check the `sphinx-markdown-tables` GitHub issues for known compatibility problems or try updating `sphinx-markdown-tables` to its latest version.
Adhere to the GFM table syntax in your Markdown files for correct rendering. Example: `| H1 | H2 |\n|----|----|\n| C1 | C2 |`
Check your `conf.py` file to ensure `sphinx_markdown_tables` is present and correctly spelled within the `extensions = [...]` list.
1. Verify `sphinx_markdown_tables` is in `extensions` in `conf.py`. 2. If using Markdown files (`.md`), ensure a Markdown parser like `myst_parser` is installed (`pip install myst-parser`) and also added to `extensions` in `conf.py`, and `source_suffix` is configured for `.md`.
Install the package using `pip install sphinx-markdown-tables`. Ensure you are running Sphinx in the correct virtual environment if applicable.