quarto-ext / fontawesome

Use Font Awesome icons in HTML and PDF documents.
MIT License
97 stars 11 forks source link

Issue while compiling html with quarto and fontawesome #19

Closed gsaabogado closed 1 year ago

gsaabogado commented 1 year ago

When trying to run a Quarto html document with the extension, I get the error.

output file: cv.knit.md

Error running filter C:/Users/Sarmiento/AppData/Local/Programs/Quarto/share/filters/quarto-pre/quarto-pre.lua: _extensions/quarto-ext/fontawesome/fontawesome.lua:56: attempt to call a nil value (field 'is_format') stack traceback: .../Programs/Quarto/share/filters/quarto-pre/quarto-pre.lua:2943: in function 'callShortcodeHandler' .../Programs/Quarto/share/filters/quarto-pre/quarto-pre.lua:3024: in function 'transformShortcodeInlines' .../Programs/Quarto/share/filters/quarto-pre/quarto-pre.lua:2833: in function <.../Programs/Quarto/share/filters/quarto-pre/quarto-pre.lua:2827> [C]: in function 'string.gsub' .../Programs/Quarto/share/filters/quarto-pre/quarto-pre.lua:2827: in function 'transformShortcodeCode'

So you know how can I fix this error? or is it related to the extension itself?

cscheid commented 1 year ago

Can you share a single .qmd that triggers this issue for us?

eitsupi commented 1 year ago

Could this be because the current main requires quarto 1.2? Specifying v0.0.1 and installing it may solve the problem. 6206fc623371158bb84225803211f5fcaf73067a

cscheid commented 1 year ago

I'm going to speculatively close this one because I suspect eitsupi is correct in their assessment. I changed the README.md to indicate the version requirement, but please reopen the issue if you find that this doesn't work for you.