-
Notifications
You must be signed in to change notification settings - Fork 25
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
feature(renderer): Top level table styling #690
Conversation
I also renamed some attributes (the Go types, not the string values) to make better reuse of them for tables. |
This provides top-level support for attributes to style the entire table (frame, grid, float, stripes, width, autowidth). The cols attribute is still not handled, meaning that it is still not possible to configure column widths.
(Whoops, forgot to regenerate the parser... -- it was impacted by the rename AttrImageWidth to AttrWidth) |
Codecov Report
@@ Coverage Diff @@
## master #690 +/- ##
==========================================
+ Coverage 85.24% 85.31% +0.07%
==========================================
Files 71 71
Lines 4790 4816 +26
==========================================
+ Hits 4083 4109 +26
Misses 451 451
Partials 256 256 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work @gdamore! 🙌
@@ -99,6 +93,16 @@ const ( | |||
AttrCaption = "caption" | |||
// AttrStyle block or list style | |||
AttrStyle = "style" | |||
// AttrWidth the `width` attribute used ior images, tables, and so forth | |||
AttrWidth = "width" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should also rename AttrImageHeight
to AttrHeight
for the sake of consistency?
This provides top-level support for attributes to style the
entire table (frame, grid, float, stripes, width, autowidth).
The cols attribute is still not handled, meaning that it is
still not possible to configure column widths.