mkdocs-table-reader-plugin icon indicating copy to clipboard operation
mkdocs-table-reader-plugin copied to clipboard

Optionally add table metadata

Open mihaigalos opened this issue 1 year ago • 1 comments

I'm using this plugin to read data from csv and then js to modify a table matching specific criteria (i.e.: containing Name, Email and Team) to dynamically generate data and append it to the table (i.e.: the team logo). This then gets nicely rendered in mkdocs.

I however am aware that any table matching these criteria will be modified, not just the one I'm reading from CSV.

Any way to add metadata in the read_csv("data.csv", class="foo") call to generate a <table class=foo/>?

This might be fiddly since markdown is generated in between and that then gets rendered, I guess.

mihaigalos avatar Jun 17 '24 15:06 mihaigalos

You can actually write HTML inside markdown. Try something like:

<div class="foo">

insert table here

</div>

Now in your CSS you can style foo.table.

timvink avatar Jun 26 '24 11:06 timvink