quarto-ext / fontawesome

Use Font Awesome icons in HTML and PDF documents.
https://quarto-ext.github.io/fontawesome/
MIT License
109 stars 10 forks source link

Added support for color (?) #35

Open jreades opened 11 months ago

jreades commented 11 months ago

First time writing Lua and first time tweaking a Quarto extension, but I wanted the ability to specify a color for a fontawesome icon and believe I've done it. Extension seems to run without a problem on my system (Quarto version 1.3.450 on a M2 Mac running Sonoma 14.2) so here's a pull request that is hopefully fairly easy to parse.

Color is supported in a few ways:

Examples in example.qmd.

cscheid commented 11 months ago

Thanks for the PR. We've had similar requests in the past and we haven't merged them because they were only implemented in HTML. We have a number of features in Quarto that are only supported in HTML and PDF, so I think this might be good enough coverage for us right now. @dragonstyle what do you think?

cscheid commented 11 months ago

And I apologize, our PR template should have described it: we also need you to accept, sign and submit a CLA (https://github.com/quarto-dev/quarto-cli/blob/main/.github/pull_request_template.md)

dragonstyle commented 11 months ago

Seems good to me, esp for an extension!

jreades commented 11 months ago

Signed individual contributor license sent in to 'jj'. Apologies if I missed the PR template: while I broadly know how PRs work I've never really had to make use them so I didn't know what to look out for in terms of project-specific practices.

Noticed something in the info about udpating the changelog: is that something separate, I wasn't sure where to look for that? I did increment the version for the extension in the YAML file but, again, that might not have been the right way to do this so feel free to correct as needed. I also don't know if you have test cases that need writing to reflect this change or if the changes to the example.qmd file are enough.

jon

cscheid commented 11 months ago

Apologies if I missed the PR template

No need, you didn't miss anything! It's just that some folks are not willing or able to sign CLAs, and it feels bad for them to do the work before knowing that it can't be incorporated.

mcanouil commented 9 months ago

FYI:

Same thing for another more similar extension (mostly for HTML though):