JavaScript Interface ActionFlags - how do I even?

Hi Nick - are there any examples of actionflags in use? I’m interested in captureHtml, especially the fallback part since I want to convert md text to html before url encoding in a snippet.

If the selection is not HTML-backed, PopClip will generate HTML from any available RTF or plain text content.


1 Like

There are several examples in my repo but here’s a quick example snippet:

// #popclip
// {name: HTML Demo, lang: js, captureHtml: true }
const html=popclip.input.html

If you are having trouble achieving anything specific, just let me know.