emacsorphanage / fontawesome

fontawesome utility
33 stars 6 forks source link

orgmode html export #13

Open jschaeff opened 6 years ago

jschaeff commented 6 years ago

Hi, thanks for your nice package. I'm looking for a way to export my fontawesome icons when using orgmode html export. As a matter of fact, instead of having the html , I get a tofu character.

I guess the exporter should replace the icons with the adequate html code. Do you have an idea how to do this ?

jschaeff commented 6 years ago

An Idea would be to add org-entities with this package. For instance:

(setq org-entities-user
   (quote
     (("faCogs" "\\faCogs" nil "<i class=\"fa fa-cogs\"></i>" "=cogs=" "=cogs=" "")
     ("faPlus" "\\faPlus" nil "<i class=\"fa fa-plus\"></i>" "+" "+" ""))))