Giter Club home page Giter Club logo

fontawesome's Introduction

Font Awesome Extension for Quarto

This extension provides support including free icons provided by Font Awesome. Icons can be used in both HTML (via Font Awesome 6 Free) and PDF (via the fontawesome5 LaTeX package).

Installing

$ quarto install extension quarto-ext/fontawesome

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Using

To embed an icon, use the {{{< fa >}}} shortcode. For example:

{{< fa thumbs-up >}} 
{{< fa folder >}}
{{< fa chess-pawn }}
{{{< fa brands bluetooth }}}

This extension includes support for only free Font Awesome icons (there are roughly 2,000 free icons, while the complete set of Pro icons consists of more than 16,000). You can browse all of the available free icons here:

https://fontawesome.com/search?m=free

Brands

Note that there is a brands prefix used within the bluetooth example above. If you choose an icon from the brands collection, you will need to add a brands collection specifier. For example, if you search the free icons for "github" and then click on the github icon, you'll see this as the suggested HTML to embed the icon:

<i class="fa-brands fa-github"></i>

The fa-brands indicates that the icon is in the brands collection. To use this with Quarto just add the brands collection prefix as follows:

{{{< fa brands github }}}

Example

Here is the source code for a minimal example: example.qmd

This is the output of example.qmd for HTML and PDF.

fontawesome's People

Contributors

cscheid avatar jjallaire avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.