We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set:icon
set icon
1 parent 3f7f825 commit ab0b58eCopy full SHA for ab0b58e
_extensions/iconify/iconify.lua
@@ -82,10 +82,15 @@ return {
82
local icon = pandoc.utils.stringify(args[1])
83
local set = "fluent-emoji"
84
85
+ if #args > 1 and string.find(pandoc.utils.stringify(args[2]), ":") then
86
+ quarto.log.warning(
87
+ 'Use "set:icon" or "set icon" syntax, not both! ' ..
88
+ 'Using "set:icon" syntax and discarding first argument!'
89
+ )
90
+ icon = pandoc.utils.stringify(args[2])
91
+ end
92
+
93
if string.find(icon, ":") then
- if #args > 1 then
- print('Warning: use "set:icon" or "set icon" syntax, not both.')
- end
94
set = string.sub(icon, 1, string.find(icon, ":") - 1)
95
icon = string.sub(icon, string.find(icon, ":") + 1)
96
elseif #args > 1 then
0 commit comments