Open DanielGrigoras opened 5 years ago
Not via the theme currently. You can do it via the content. See https://asciidoctor.org/docs/user-manual/#cell.
We could certainly provide a fallback value named table_head_align
if not set on the cell. Seems like it would be easy to add.
...except this is the wrong repository. I'll move the issue to asciidoctor-pdf.
There we go, now we're in the right place.
Thanks! I look forward to using this asap.
Unfortunately, this isn't possible. That's because the document model doesn't know whether the alignment was set explicitly on the cell or is using an inherited or default value.
The only way this would work currently is if the theme forced the alignment. And I don't think that's what most users would expect.
We'd have to pursue this change upstream in Asciidoctor first in order to support it in Asciidoctor PDF.
This depends on the following upstream issue: https://github.com/asciidoctor/asciidoctor/issues/3335
Is there any way to center the table header text via an ADOC Theme? Reading the ADOC Theming Guide ( https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#keys-table ) I was disappointed to find out that there's nothing documented on table header text alignment.