From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23467 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Phillips Newsgroups: gmane.text.pandoc Subject: How to use pandoc in the front-end Date: Thu, 26 Sep 2019 06:01:55 -0700 (PDT) Message-ID: <3a48da79-8e68-41f6-8208-56f5522e560b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6603_768446976.1569502915430" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="221203"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDWO5SXJ6QBRBRHNWLWAKGQEIFMIZ5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 26 15:02:00 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f188.google.com ([209.85.167.188]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iDTPD-000vL3-VY for gtp-pandoc-discuss@m.gmane.org; Thu, 26 Sep 2019 15:02:00 +0200 Original-Received: by mail-oi1-f188.google.com with SMTP id b2sf1051117oie.21 for ; Thu, 26 Sep 2019 06:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=1vxyWroDgD35Hxsioy8S60KyXHkIi/uov1PEUdgXf4A=; b=UMNURSByVfZIhe/12q84OCivtXT6nusuQJRKpJKFK5UcU+Za7feksCapP2TUwI501e q8tKVFFJ2UxcNYp85IBAfBoNpGFze50OqzMvkq7k4nubZmXxx6oOf8kg4x5FnWMCxVM+ zKTFasjPOhEIBZ7EAuW7b0GTaeBrE5ioVABR4x/4joNDzi6ynyFVVyv8cu/X9UjkRMjC fr2m/vajuwGqImV+b+igQCnK3yv30KtEm3apSnB1Q/cMfoB8CvipiW/hwqW9pvwyAtJH RUpPT9aWGGmAQJ9H6y+yJ/ViySy9ad8TkJdMgVuOLzrtWOelUTuXBQWum9tuDQleKCH2 yblA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stevie-pro.20150623.gappssmtp.com; s=20150623; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=1vxyWroDgD35Hxsioy8S60KyXHkIi/uov1PEUdgXf4A=; b=ocFQnNYP5Fs4jVoBgXmeOTEyrLPFK2I1OuRNGfZFBDNywg6QFXVYLaD0gAy6yCVwXq Ndp2Up6DR5Lerp3O+I1h4MLWLICfNHosuhmEFJaSpuAIbTQGRS1jauIljw2vzvQPN2Lp jwmrP2DYFuoK/OoUrLQMcePSWBzzZ5VdUy7BMRnsW3rusCD23jDjTaeHLoDidJfd//nJ 5BdxcIPe5byyJKIUOiRbKA85kJgagglCbvdNPaeh/aFq4CrLofyO5nijhmhcrxPOsxsQ Q3n4MyvXgz11S1gQ6wLgD0KMeC9u6WKL/PnAHEsalG5J7K3T+wZ+ekHM97SZ5Lz6cLZP 6DJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1vxyWroDgD35Hxsioy8S60KyXHkIi/uov1PEUdgXf4A=; b=KLCoBFk65xqXdzC/zaJYJAVkQGTtvqpTDoYpNewPG6aA1X9Pp4rSBEnc02C8Dlc8Rp A5m6gH/cGzkh6l0jeLIlozN4G2HS/OJvRExyYHMCCA8NXkJuY2lhYGibYpgGGSrsl8G7 0ogGM98yb1inOmu/WsFWZQOdEKGEDE6XqDWQSfuLl9tTeXhKWpVY5tnQ7lyNzUysZvSb LxxivGsdqVoYDCC8kfnsSXd/nNX4SQgyYwtkUZ1++XxOLXHtvUoOaxYWda10uw2EoF7M HrSwBoRGQYCl6W/L+QCd2ky3tBxoylNKgpGURAG/8/sQWfuEc0BaqnT5Z6U763CPJGd1 ujvQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUfZZ30S1zjiVmsCVBzcKkG6UIKytSvWx9irk6Yk6+xpmKcmjlP 4ZRqRmeYhdd3FT7bb/hNWP8= X-Google-Smtp-Source: APXvYqx7l2D00Dbm2S6HUJgIMMJz1c8Z5xzVrDHtS5AnYRM/NY3xN+oD/JmDKTxSefjg67PRXsDN9Q== X-Received: by 2002:a9d:6a16:: with SMTP id g22mr2337550otn.118.1569502917454; Thu, 26 Sep 2019 06:01:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:c743:: with SMTP id x64ls453489oif.10.gmail; Thu, 26 Sep 2019 06:01:56 -0700 (PDT) X-Received: by 2002:aca:e104:: with SMTP id y4mr2479632oig.114.1569502916150; Thu, 26 Sep 2019 06:01:56 -0700 (PDT) X-Original-Sender: stevie-s+laoUQTh3ivSplVBqRQBQ@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23467 Archived-At: ------=_Part_6603_768446976.1569502915430 Content-Type: multipart/alternative; boundary="----=_Part_6604_45302074.1569502915430" ------=_Part_6604_45302074.1569502915430 Content-Type: text/plain; charset="UTF-8" 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 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 ? 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. ------=_Part_6604_45302074.1569502915430 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 / ad= visable?

<= /font>
Using the Pandoc API says &q= uot;Creating a GUI front-end for pa= ndoc is thus just a matter of populating the=C2=A0Opts=C2=A0structure and cal= ling this function." - which makes it all sound so very easy!
But how do I call the API from my front-end code?<= /span>
=C2=A0
I= s it a matter of using one of the wrappers / interfaces listed here?= If so, how do I require a node module in my front-end? (Acknowledging that= 's not got much to do with pandoc!)
<= br>
Any tips / guidance / docs / articles = / tutorials very welcome.

Thanks

Steve

=

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
------=_Part_6604_45302074.1569502915430-- ------=_Part_6603_768446976.1569502915430--