Login  Register

Re: Asciidoctor pdf - Custom admonition icons

Posted by mojavelinux on Aug 06, 2019; 7:56pm
URL: https://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7049.html

Ah,  I see what you're saying.

You can use the following extension from the extensions lab: https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/lib/custom-admonition-block.rb

Combine it with this theme:

extends: default
admonition:
  icon:
    question:
      name: far-question-circle
      size: 24

Cheers,

-Dan

On Tue, Aug 6, 2019 at 1:36 PM be.wood [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thank you for the quick response. I see how to extend, now, but my problem is that I actually need to create new admonition types. I have defined them without problem for HTML output (actually with REVIEW and GUIDANCE as types), and can generate the HTML without problems. I would like to add these as valid for the PDF output as well, which is where I am stuck, how can I create them as I can using the custom-admonition-block extension?

Thank you


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7048.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux