Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally add table metadata #67

Closed
mihaigalos opened this issue Jun 17, 2024 · 1 comment
Closed

Optionally add table metadata #67

mihaigalos opened this issue Jun 17, 2024 · 1 comment

Comments

@mihaigalos
Copy link

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.

@timvink
Copy link
Owner

timvink commented Jun 26, 2024

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 timvink closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants