zhang-yuan
zhang-yuan

Reputation: 448

style of asciidoc Admonition missing while using Hugo ? ( syntax not supported? )

I'm using Hugo to generate static pages in Gitlab, seems the syntax of asciidoc not supported well (such as Admonition)? or it's just about the theme I'm using?

for code [TIP]

Expected:

Expected

Current:

Current

Upvotes: 1

Views: 713

Answers (1)

ahus1
ahus1

Reputation: 5932

Please enable font-based icons by adding

:icons: font

to your document. See Font Icon Mode in AsciiDoc docs for details. Depending on the CSS you use, the tool tip might look different. See below for the "classic" CSS of Asciidoctor.

enter image description here

Once you add the :icons: font, it is a matter of updating the CSS to make it look like your screenshot above.

Upvotes: 3

Related Questions