public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to use pandoc in the front-end
@ 2019-09-26 13:01 Stephen Phillips
       [not found] ` <3a48da79-8e68-41f6-8208-56f5522e560b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Phillips @ 2019-09-26 13:01 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]

Sorry to ask a (probably) very basic question for which there is (probably) 
a very simple answer.

How can I use pandoc directly in a front-end (Angular 2+) web-app? Or is 
that not possible / advisable?

Using the Pandoc API <https://pandoc.org/using-the-pandoc-api.html> says "Creating 
a GUI front-end for pandoc is thus just a matter of populating the Opts structure 
and calling this function." - which makes it all sound so very easy!
But how do I call the API from my front-end code?
 
Is it a matter of using one of the wrappers / interfaces listed here 
<https://github.com/jgm/pandoc/wiki/Pandoc-wrappers-and-interfaces>? If so, 
how do I require a node module in my front-end? (Acknowledging that's not 
got much to do with pandoc!)

Any tips / guidance / docs / articles / tutorials very welcome.

Thanks

Steve

-- 
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/3a48da79-8e68-41f6-8208-56f5522e560b%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to use pandoc in the front-end
       [not found] ` <3a48da79-8e68-41f6-8208-56f5522e560b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-09-26 18:55   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2019-09-26 18:55 UTC (permalink / raw)
  To: Stephen Phillips, pandoc-discuss

Stephen Phillips <stevie-s+laoUQTh3ivSplVBqRQBQ@public.gmane.org> writes:

> Using the Pandoc API <https://pandoc.org/using-the-pandoc-api.html> says "Creating 
> a GUI front-end for pandoc is thus just a matter of populating the Opts structure 
> and calling this function." - which makes it all sound so very easy!
> But how do I call the API from my front-end code?

This document is about using pandoc as a library from a Haskell
program.  Unless you're using Haskell to write your front-end,
it won't be easy. (You'd have to shell out to pandoc -- there
may be node modules out there that encapsulate this -- or set
up a local server you can query.)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-26 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-26 13:01 How to use pandoc in the front-end Stephen Phillips
     [not found] ` <3a48da79-8e68-41f6-8208-56f5522e560b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-09-26 18:55   ` John MacFarlane

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).