Login  Register

Re: Asciidoc, template based site (awestruct) and font-awesome

Posted by graphitefriction on Jul 20, 2013; 9:38pm
URL: https://discuss.asciidoctor.org/Asciidoc-template-based-site-awestruct-and-font-awesome-tp383p385.html

Hi Emmanuel!

Nope, that's not sacrilege :D

What you're trying to do should be possible, but there might be a bug/missing test. I'll look into it, too, and see what's going on or going wrong (and then make sure it gets documented).

-Sarah


On Sat, Jul 20, 2013 at 8:55 AM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:
If Dan is watching the list I'm sure he'll have a good solution, but I'll take a look too. 

Sent from Mailbox for iPhone


On Fri, Jul 19, 2013 at 1:16 PM, Emmanuel Bernard [via Asciidoctor :: Discussion] <[hidden email]> wrote:

I know this is somewhat sacrilege but I am looking for a way to integrate font-awesome icons into an asciidoc document that is the template for an html page (generated by Awestruct).

Font Awesome is used in HTML like this  and this tag is replaced by a nice icon. Thing of it conceptually as an image, except it uses font and unicode.

I tried to use the ability to attach roles to text

[source, asciidoc]
----
= [icon-camera-retro]#sometext# Nice camera
----

It works but also displays some text after the icon. Trying to replace it with nothing or with an empty space did result in a parser misinterpretation.

Do you have a solution to this challenge?

Emmanuel


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoc-template-based-site-awestruct-and-font-awesome-tp383.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoc-template-based-site-awestruct-and-font-awesome-tp383p384.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML