Customizing admonitionblock rendering

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Customizing admonitionblock rendering

lfryc
This post was updated on .
Hi guys,

is there a way how to customize rendering of admonitionblock such as TIP or NOTE?

I don't like it renders the table by default.



I've found that [admonitionblock] is defined in ./vendor/ruby/1.9.1/gems/asciidoctor-1.5.2/compat/asciidoc.conf

but the docs say you can't really provide own asciidoc.conf with Asciidoctor:
https://github.com/asciidoctor/asciidoctor/wiki/Does-Asciidoctor-support-AsciiDoc-.conf-files%3F


Thanks!

~ Lukas
Reply | Threaded
Open this post in threaded view
|

Re: Customizing admonitionblock rendering

LightGuardjp
You want to change the output html or just the style?

On Tue, Feb 24, 2015 at 10:42 AM, lfryc [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi guys,

is there a way how to customize rendering of admonitionblock such as TIP or NOTE?

I don't like it renders the
 by default.



I've found that [admonitionblock] is defined in ./vendor/ruby/1.9.1/gems/asciidoctor-1.5.2/compat/asciidoc.conf

but the docs say you can't really provide own asciidoc.conf with Asciidoctor:
https://github.com/asciidoctor/asciidoctor/wiki/Does-Asciidoctor-support-AsciiDoc-.conf-files%3F


Thanks!

~ Lukas


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



--
Reply | Threaded
Open this post in threaded view
|

Re: Customizing admonitionblock rendering

lfryc
Hey Jason,

I would love to change the html output, because it renders table with the image, but div with fontawesome icon would be more appropriate.

If there is no way I can always style it. :-)
Reply | Threaded
Open this post in threaded view
|

Re: Customizing admonitionblock rendering

LightGuardjp

On Tue, Feb 24, 2015 at 10:48 AM, lfryc [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hey Jason,

I would love to change the html output, because it renders table with the image, but div with fontawesome icon would be more appropriate.

If there is no way I can always style it. :-)


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



--
Reply | Threaded
Open this post in threaded view
|

Re: Customizing admonitionblock rendering

lfryc
Thanks for the tip, Jason!