Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FontAwesome on GitHub flavored markdown

I want to know the best way to represent FontAwesome icons on GitHub flavoured markdown. Currently What I do is I include the path for my compiler to find FontAwesome and Academ-icons.

link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

Then write my desired Academicon as

<i class="ai ai-arxiv ai-5x"></i>
<i class="fa fa-medium fa-5x" aria-hidden="true">

Mind you this is a markdown file that I am editing. When viewing on MarkdownPad, my README renders with the icons, but when pushed to Git the icons don't show. Compiling with Pandoc to an HTML page still renders the icons. Can someone help me with this?

like image 495
juneHunter Avatar asked Jan 31 '20 08:01

juneHunter


People also ask

Is Font Awesome GDPR compliant?

Does Font Awesome comply with the EU General Data Protection Regulation? Font Awesome respects privacy rights under Regulation (EU) 2016/679, the European Union's General Data Protection Regulation (GDPR).

Is Font Awesome no longer free?

Font Awesome is fully open source and is GPL friendly. You can use it for commercial projects, open source projects, or really just about whatever you want. Attribution is no longer required as of Font Awesome 3.0 but is much appreciated: "Font Awesome by Dave Gandy - http://fontawesome.io".


1 Answers

After a few months of initially posing this question, I found the answer. So apparently GitHub does not support CSS rendering for security purposes. Here is an answer to this question.

I have verified this using custom CSS and trying to centrally render a logo on my README but it doesn't work either. Here is the README in question

I am not exactly sure but READMEs on GitLab may still render custom CSS. I have used GitLab but the GitLab settings vary w.r.t. the org.

like image 156
juneHunter Avatar answered Oct 12 '22 17:10

juneHunter