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 501 forks source link

Support for styling admonition separately? #2395

Closed lirantal closed 1 year ago

lirantal commented 1 year ago

Hi, I'm new to Asciidoc and Asciidcotor so first off thanks for building this re-usable and helpful Docker image to get started really quick!

I was wondering whether we need to do anything to allow theme styling of admonition types differently? Applied a theme layout such as:

admonition:
  background-color: #ffffff
  warning:
    background-color: #ff0000

As well as some other ways to define the per-admonition type style but nothing seems to work except the global admonition key that applies to all of them.

Is there something needed in order to enable this level of customization?

lirantal commented 1 year ago

I actually found that it is a known issue with asciidoctor-pdf but has a workaround using a custom/extended converter. Documented here: https://github.com/asciidoctor/asciidoctor-pdf/issues/1685