FontAwesome plugin for Docsify.
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/fontawesome.css" />
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/brands.css" />
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/regular.css" />
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/solid.css" />
<script src="//unpkg.com/docsify-fontawesome/dist/docsify-fontawesome.min.js"></script>
Any text inside of : character is processed as CSS style and converted to HTML code for FontAwesome, example:
:fas fa-home fa-fw:
This code is converted to :
<i class="fas fa-home fa-fw"></i>
npm run buildnpm run exampleView source code to understand SVG usage
npm run buildnpm run example-svgJavaScript
76.3%
HTML
23.7%
FontAwesome plugin for Docsify.
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/fontawesome.css" />
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/brands.css" />
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/regular.css" />
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/solid.css" />
<script src="//unpkg.com/docsify-fontawesome/dist/docsify-fontawesome.min.js"></script>
Any text inside of : character is processed as CSS style and converted to HTML code for FontAwesome, example:
:fas fa-home fa-fw:
This code is converted to :
<i class="fas fa-home fa-fw"></i>
npm run buildnpm run exampleView source code to understand SVG usage
npm run buildnpm run example-svgJavaScript
76.3%
HTML
23.7%