asciidoctor / asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
https://intellij-asciidoc-plugin.ahus1.de/
Apache License 2.0
355 stars 145 forks source link

How to show the admonitions icon #754

Closed jaune162 closed 3 years ago

jaune162 commented 3 years ago

Description

image

It dos not show the admonitions icon. Just show a text.

Is there need some config? I have no config file in my project.

ahus1 commented 3 years ago

Hi - yes, a config is necessary to show admonitions icons. Once you add :icons: font the icons will show.

You can add the attribute to the document (as shown below), configure it in the plugin's settings, or add an .asciidoctorconfig configuration file.

See https://docs.asciidoctor.org/asciidoc/latest/macros/icons-font/ for more information.

The following snippet

:icons: font

[IMPORTANT]
.Feeding the Werewolves
====
While werewolves are hardy community members, keep in mind the following dietary concerns:

. They are allergic to cinnamon.
. More than two glasses of orange juice in 24 hours makes them howl in harmony with alarms and sirens.
. Celery makes them sad.
====

will show

image

Please let me know if this works for you.

jaune162 commented 3 years ago

It's works. Thanks very much!!!