I do exactly this with the Alfred workflow tool  - https://www.alfredapp.com/.

I have a variety of workflows setup for various conversions.  Here's one for markdown->RTF, for pasting rich text into Office.

pbpaste | pandoc --standalone --from=markdown --to=rtf --output=- | pbcopy 

Leonard

On Thu, Dec 22, 2022 at 7:14 PM Daniel Staal <DStaal-Jdbf3xiKgS8@public.gmane.org> wrote:
On 12/22/22 5:13 PM, Joseph Reagle wrote:
> I sometimes want to quickly convert one format to another within my
> clipboard manager. For example, Wikimedia Commons can give you the HTML
> or BBCode to embed an image, but I prefer markdown.
> For this, I usually go to <https://pandoc.org/try/>, but I don't see
> support for parameters in its URL. (If it did, I could define some
> clipboard manager shortcuts to invoke common conversions via the web.) 
> Or I sometimes want to convert from reference links to inline links or
> the reverse.
>
> I could write a script, making use of pbcopy/pbpaste, but was wondering
> what others do for these use cases?
>
> —Joseph
>

As a Mac user, I use BBEdit.  Paste in, and then feed to a short script
that reads the source language from the BBEdit lang.

I have several different scripts in the BBEdit scripts folder that I can
apply, with different options.

Daniel T. Staal

--
---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3f9886ae-c6f3-3843-d921-058592f28994%40usa.net.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3%2B_5%3DGYfG7DzfgKgOKOcfRPftwrHpbQd6uZPqiZyfmgDQ%40mail.gmail.com.