Hi all!
I tried to modify the markdown display script to render markdown only for items with md tag, but failed. My attempt was:
[Command]
Command="
copyq:
popup(\"tags: \", plugins.itemtags.tags()) // cannot see the tags, but there **are** tagged items
if (plugins.itemtags.hasTag('md')) {
text = data(mimeText)
result = execute('markdown-it', null, text)
if (result && result.exit_code == 0) {
setData(mimeHtml, result.stdout)
}
}"
Display=true
Icon=\xf15b
Name=markdown
Can you help me to spot what was my mistake?
thanks
Gergo