public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Easy tool for quick conversions?
Date: Thu, 22 Dec 2022 16:49:42 -0800	[thread overview]
Message-ID: <FD5D7595-2616-4561-B0DF-2AF5EF87D311@gmail.com> (raw)
In-Reply-To: <f8025d4d-99d5-dbae-011a-8320fe992cbc-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>

pandoc.org/try does support parameters, e.g.

https://pandoc.org/try/?params=%7B%22text%22%3A%22%22%2C%22to%22%3A%22html5%22%2C%22from%22%3A%22markdown%22%2C%22standalone%22%3Afalse%2C%22embed-resources%22%3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3Afalse%2C%22html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%22highlight-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22template%22%3Anull%7D

value of params is a URI-encoded JSON string representing option settings.


> On Dec 22, 2022, at 2:13 PM, Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> 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
> 
> -- 
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f8025d4d-99d5-dbae-011a-8320fe992cbc%40reagle.org.

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/FD5D7595-2616-4561-B0DF-2AF5EF87D311%40gmail.com.


  parent reply	other threads:[~2022-12-23  0:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22 22:13 Joseph Reagle
     [not found] ` <f8025d4d-99d5-dbae-011a-8320fe992cbc-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2022-12-23  0:14   ` Daniel Staal
     [not found]     ` <3f9886ae-c6f3-3843-d921-058592f28994-Jdbf3xiKgS8@public.gmane.org>
2022-12-23  0:19       ` Leonard Rosenthol
2022-12-23  0:49   ` John MacFarlane [this message]
     [not found]     ` <FD5D7595-2616-4561-B0DF-2AF5EF87D311-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-12-23 14:53       ` Joseph Reagle
     [not found]         ` <67584db7-8d64-483f-37be-4497ae1d7dcd-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2022-12-26 22:50           ` John MacFarlane
     [not found]             ` <ED5D1559-E16A-4A4D-958A-EB1254955E60-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-01-02 15:22               ` Joseph Reagle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FD5D7595-2616-4561-B0DF-2AF5EF87D311@gmail.com \
    --to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).