timvink / 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
https://timvink.github.io/mkdocs-table-reader-plugin/
MIT License
111 stars 18 forks source link

Add support for tables in `.md` file #38

Closed timvink closed 1 year ago

timvink commented 1 year ago

A nice pattern is to write a table in markdown format in a separate .md file. It's easier to read in raw format (by a human), improving git diff. And you can use the same table for other purposes, like inserting it into logging.

Currently you would have to use the snippets extension

--8<-- "path/to/file.md"

It would be nice if you can use table-reader for all table operations, so you can do:

{{ read_csv('path/to/file.md') }}