mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
How do I emit a class attribute on table element #177
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @markheath on GitHub (Dec 29, 2017).
First of all, huge thanks for this library - it's really helped me on a recent project.
I'm using the
PipeTableExtensionfor tables, and I'd like the tables to be emitted with a particular class. i.e.I've had a browse through the code and it looks like there is some kind of baked in support for rendering attributes on HTML elements, but I can't work out how to configure my pipeline to do this. Is it possible?
@AdmiringWorm commented on GitHub (Dec 29, 2017):
@markheath I could be wrong, but I believe it is enabled with the following:
@xoofx commented on GitHub (Dec 30, 2017):
@markheath You can have a look at the Bootstrap extension on how to add this. I will likely add an extension to perform these kind of changes in a more "generic" way.
@markheath commented on GitHub (Dec 30, 2017):
Thanks, works perfectly
@tesar-tech commented on GitHub (Dec 5, 2020):
(I know it's an old question)
Also GenericAttributesSpecs could be helpful.