GitPedia

Mkdocs table reader plugin

MkDocs plugin that enables a markdown tag like {{ read_csv('table.csv') }} to directly insert various table formats into a page

From timvink·Updated June 11, 2026·View on GitHub·

[MkDocs](https://www.mkdocs.org/) plugin that enables a markdown tag like `{{ read_csv('table.csv') }}` to directly insert various table formats into a page. The project is written primarily in Python, distributed under the MIT License license, first published in 2020. Key topics include: mkdocs, mkdocs-plugin, pandas, tables, tabulate.

Latest release: v3.1.0table-reader v3.1.0
August 29, 2024View Changelog →

Actions Status
PyPI - Python Version
PyPI
PyPI - Downloads
codecov
GitHub contributors
PyPI - License

mkdocs-table-reader-plugin

MkDocs plugin that enables a markdown tag like {{ read_csv('table.csv') }} to directly insert various table formats into a page.

For a workflow with other plugins see the blogpost building reproducible reports with MkDocs

Installation

Install the plugin using pip:

bash
pip install mkdocs-table-reader-plugin

Next, add the following lines to your mkdocs.yml:

yml
plugins: - search - table-reader

If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set.

Usage

In your markdown files you can now use:

html
{{ read_csv('path_to_table.csv') }}

Where the path is relative to the location of your project's mkdocs.yml file, or your project's docs/ directory, or the location of your markdown source file (all 3 possible locations will be searched, in that order).

  • There are readers available for many common table formats, like .csv, .fwf, .json, .xls, .xlsx, .yaml, .feather and .tsv. There is also the read_raw() reader that will allow you to insert tables (or other content) already in markdown format.
  • table-reader is compatible with mkdocs-macros-plugin. This enables further automation like filtering tables or inserting directories of tables. See the documentation on compatibility with macros plugin for more examples.

Documentation and how-to guides

See timvink.github.io/mkdocs-table-reader-plugin/

Contributors

Showing top 8 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from timvink/mkdocs-table-reader-plugin via the GitHub API.Last fetched: 6/29/2026