Git Product home page Git Product logo

Comments (3)

cderv avatar cderv commented on August 20, 2024 1

Regarding your request of not using shortcodes, this is asked in there already

is it possible to style the icon in the same way as I have above while using shortcode only?

Currently there is no way to pass any attributes using shortcode. Only a few is supported

return pandoc.RawInline(
'html',
"<i class=\"fa-" .. group .. " fa-" .. icon .. size .. "\"" .. title .. label .. "></i>"
)

Alternatively, is there a way to ensure fontawesome dependencies get loaded to a document whether or not a shortcode is found?

See #30 for a wild trick of display: none

Otherwise, don't use the shortcode, and directly use the fontawesome dependencies using include-in-header and some raw HTML or use the Lua version of adding dependencies as mentioned in #30 (comment)

#30 should solve your problem. so I'll rephrase this issue as supporting more options

from fontawesome.

cderv avatar cderv commented on August 20, 2024

Initially it appears that using the HTML syntax does not work. However, including at least one quarto syntax icon in the document allows both syntax types to render as expected.

This is because if you don't use the shortcode, then the fontawesome dependencies are not loaded into your document. The HTML deps are only inserted in document header when {{< fa ... >}} is used - same for LaTeX dependencies.

If the shortcodes is not used, the the extension does nothing.

from fontawesome.

r-leyshon avatar r-leyshon commented on August 20, 2024

I see, so would is it possible to style the icon in the same way as I have above while using shortcode only?

Alternatively, is there a way to ensure fontawesome dependencies get loaded to a document whether or not a shortcode is found?

from fontawesome.

Related Issues (20)

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.