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.13k stars 500 forks source link

Customise a block according to its type #2500

Closed gemkod closed 4 months ago

gemkod commented 4 months ago

Hello,

Wouldn't it be possible to use a block by specifying the type name and formatting some basic properties (outline, background colour, etc.)?

Here's an example of what I'm trying to do :

image

I use anonymous blocks so that I can easily change the name of the block if something changes.

I have read topics #483 and #1486 as well as https://docs.asciidoctor.org/pdf-converter/latest/extend/use-cases/#theme-admonition-per-type.

I think I've understood that it's possible via an extension to add other admonition blocks but nothing related to what I want to do.

Perhaps I'm on the wrong way or misusing Asciidoc / Asciidoctor-pdf.

Thank you very much for your feedback. Asciidoc is so wonderful!

mojavelinux commented 4 months ago

As the issue template requests, please ask questions in the project chat. I'd be happy to answer your question there.

See https://docs.asciidoctor.org/about/get-help/#issue-tracker for our policy about how the issue tracker should be used.