asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

Horizontal description lists ignore theme's term font color #1994

Closed BrianEmberling closed 2 years ago

BrianEmberling commented 2 years ago

It seems like description lists which use [horizontal] ignore the theme's font color for the term. In the example below (and attached), the horizontal descriptions keep the default (black) font color, but the non-horizontal ones pick up the theme's green font color. (using asciidoctor-pdf 1.6.2)

Theme:

extends: default
description_list:
  term_font_color: 0fff00

ADOC file:

= horizontal descriptions ignore color
:doctype: article

== Header1

[horizontal]
DEF1::  here is a defintion for some stuff
DEF2::  here is a defintion for some stuff

some text

DEF1::  here is a defintion for some stuff
DEF2::  here is a defintion for some stuff

bug

bug2.zip

mojavelinux commented 2 years ago

Thanks for pointing this out. I added support for the font color and text transform. I did not add support for font size because that can really mess up the layout in this context.