diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-11-24 23:52:16 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-11-25 00:02:33 -0700 |
| commit | f94e67afe1cd848c74b24525f3559ca8eb20c610 (patch) | |
| tree | 56fd2311eba4407735a592566dda6c52a528ac0e | |
| parent | 43230884b043e7db77ec3a4645262580a5673f99 (diff) | |
add font-size key to table role example; change role name
| -rw-r--r-- | docs/modules/extend/pages/use-cases.adoc | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/modules/extend/pages/use-cases.adoc b/docs/modules/extend/pages/use-cases.adoc index bf91bde1..6629ed62 100644 --- a/docs/modules/extend/pages/use-cases.adoc +++ b/docs/modules/extend/pages/use-cases.adoc @@ -335,19 +335,29 @@ include::example$pdf-converter-table-role.rb[] This extended converter allows you to specify any theme key on the custom role that's supported for tables. The role must be defined under a special role name `<table>` (to avoid clashing with other role names). -Here's an example of a custom table role named `thick` that increases the width of the table border and grid lines. +Here's an example of a custom table role named `heavy` that increases the width of the table border and grid lines and increases the font size. [,yaml] ---- extends: default role: <table>: - thick: - border-width: 2 - grid-width: 2 + heavy: + border-width: 1.5 + grid-width: 1.5 + font-size: 12.5 ---- -You apply this role to a table by prepending `.thick` to the first positional attribute in the block attribute line above the table. +You apply this role to a table by prepending `.heavy` to the first positional attribute in the block attribute line above the table. + +[,asciidoc] +---- +[.heavy,cols=2*] +|=== +|big +|data +|=== +---- As written, the extended converter only supports the first role on the table. It could be enhanced to support an arbitrary number of roles, with each successive role cascading (like CSS). |
