-
Notifications
You must be signed in to change notification settings - Fork 26
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
Can I add a class to a table? #28
Comments
I think the attribute list extension will do what you want. It is included in the |
Hm, jep I came up with this page, but it doesn't work, because the devs of python markdown don't want it. |
I see. Well, Maybe there are some extenstions to |
Hm, in the issue there are several people talking about alternatives, but they oftentimes don't fulfill the necessary requirements. I will check some of them. The Editing-Feature is for non-technical people, and I do not think that they are able to write HTML tables without a real editor. I tested it with a small table, but this is not a valuable solution. For me this will be no problem, but there are some more people writing posts on the page. Thanks for your help. I will keep an eye on the other extensions and leave you a comment, if there is a working solution 👍 |
Heyho, is it possible to add a CSS class to a table or something?
I can configure as allowed attributes the following settings:
In my case, I want to add
table table-hover table-striped
classes to a table, but I do not know how to do this. And I can only find it in the python code examples, but not from within the markdown itself. Is it possible to add classes?Your documentation points to this page: https://bleach.readthedocs.io/en/latest/clean.html#allowed-attributes-attributes
But they are using the attrs on the html code itself, not on markdown representations.
Thanks for your help :)
The text was updated successfully, but these errors were encountered: