From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29133 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leon Bartz Newsgroups: gmane.text.pandoc Subject: Re: Running Pandoc via JavaScript? Date: Thu, 26 Aug 2021 05:43:05 -0700 (PDT) Message-ID: References: <8f9a1732-06bc-446d-a566-005a4f1ab9f7n@googlegroups.com> <5d75f991-ac8c-ef59-97ba-5edfc0adb57e@usa.net> <8cff6ffd-e85f-4937-a57c-b23093b72bben@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2856_1081559500.1629981785116" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="993"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDKNZ3HTZ4MRBWUYT2EQMGQEF7SI7OY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 26 14:43:09 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mJEiq-000ATP-UL for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 26 Aug 2021 14:43:08 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id k18-20020a9d7dd2000000b0051aec75d1absf1086567otn.5 for ; Thu, 26 Aug 2021 05:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=flM3O4jFwcW4MVWV1Pqf9f7WtbeZQn2Ekiz9L/sQEUo=; b=Oh/ynJMGUBcmEa10NvG+tpJi+dWotd/sg/N8o00iNpNtEowICCZQ8FaLoGZoZ5f31e djXIIrEquac+i4cJrMbL+9y+YXiRj/Akzj5TYhBqAMoJOsCxRcbfIHK5dv11oxS7GI53 Qs6sPNi1s8zbF2USj/f/LZjbSbcB6ci6nfIqorWBfR60P/YOMcseJqHsyfKpgUlz7O8J XhmK2TeyuC7rokzaaTxMDXJbLUO5C2pXv/5MI0LESwuWTo6WkXXcmP3fG2NISvoJZTFB aeQX8AlDIm3aBLuqVYvncmgo8n+BGuLo2NlgD0IL4kw773hAZ6jxwUg34Nk6CrgI6MlA KF7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=flM3O4jFwcW4MVWV1Pqf9f7WtbeZQn2Ekiz9L/sQEUo=; b=ZovVIc2yEY1ptzAnq3qMh123EqEfn0PfxvO+n8eeF8l9x3klEuoiVy1cmyWWaj230G 8CaHPWRbbFtgHl6EFIRe/5wHv3vsVR4DQQ6uwXhRD2Hiu7ib4ggxCHsed/Ft75Zx0fXo jJA3REfPd2kmt/JhxtjpouTTlfCcr2YB9Xqig573zmqeVDJbrZsyRId1AGm4Nxkhg+7d z/Af2O6a92qR7XuVYJwBH8yM10+UD56u3xlNUnFzdz0MGji+bXa0PMRQRG4l5Me1UY8b FZ1pV8WfWjpH65nqi41dVShz6VOP6yE0aUbInYh5eTX6xeIjFrDV/h6O3bilBiUL9BWt QmEw== 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:in-reply-to :references: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=flM3O4jFwcW4MVWV1Pqf9f7WtbeZQn2Ekiz9L/sQEUo=; b=U5oxicx0WIQfljtBlTQHjRS2DWiO4vd1sqTElwnw0MfUqy85luowQSj5HcCHGKA2b7 OQqPwXHGZFJAWOdMBUnGfP3GpnlL4c99OL6EQilUMDlUMr1wBxwtYNZXPyRGTlnfdexF jqNyhqrXi1kRqIyT1ds9QWBlYRSpkgUQ6sxo17Ffzb68NmcuD6dgiDFTIwrI+2fPJdCV i9clJ5JdXN4ZvUvHViuyIOwIA9eBp/97YL6lfb/8j/aP/NIXChug6mZirSgfbQx0mzNC ZkBNlo8h0Uz8fjdSRsYg69g73e8ZWHnUr7daHEM1SPid9z4/h40tgxGR0Z3f+QzeamQy 0GHA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532x9v+pYM7TJGH6yv3xs4sPZeou7GPSQFyb+f+YMOV5oIzlXgWj EOqeq0HZ1WkpaAZ9TnIpwZI= X-Google-Smtp-Source: ABdhPJwDSPRLP4XJIFw6+cTSPxHZAYJ+yGmmLUX0cq/dBouCDqNCJVDIShdEOBpxJGYtJsBTYA+HGQ== X-Received: by 2002:a9d:4105:: with SMTP id o5mr2941313ote.20.1629981787285; Thu, 26 Aug 2021 05:43:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:a83:: with SMTP id q3ls1418722oij.9.gmail; Thu, 26 Aug 2021 05:43:06 -0700 (PDT) X-Received: by 2002:a54:4804:: with SMTP id j4mr10352266oij.85.1629981785786; Thu, 26 Aug 2021 05:43:05 -0700 (PDT) In-Reply-To: <8cff6ffd-e85f-4937-a57c-b23093b72bben-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: leonbartz1-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:29133 Archived-At: ------=_Part_2856_1081559500.1629981785116 Content-Type: multipart/alternative; boundary="----=_Part_2857_2062425743.1629981785116" ------=_Part_2857_2062425743.1629981785116 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey, imma just throw that in here. This is the code i use to call Pandoc=20 from nodeJs. https://gist.github.com/BartzLeon/5e5f8fae907860b94033ac5d0affbfe2 raus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Mittwoch, 25. August 2021 um 15:31:21 UTC+2: > Thanks for your reply! > > These options are perfectly fine, I was mainly wondering if I was missing= =20 > anything simple and/or obvious. > > My use case: Converting Markdown stored in files to HTML (one file at a= =20 > time). > > On Wednesday, August 25, 2021 at 3:29:13 PM UTC+2 DSt...-Jdbf3xiKgS8@public.gmane.org wrote: > >> On 8/25/21 4:57 AM, Axel Rauschmayer wrote:=20 >> > I=E2=80=99d like to use Pandoc as a Markdown parser from JavaScript in= Node.js.=20 >> > I=E2=80=99m aware of the following options:=20 >> >=20 >> > * Running Pandoc as a shell script, providing input via stdin and=20 >> > getting the output via stdout=20 >> > * Running Pandoc via WebAssembly:=20 >> https://github.com/y-taka-23/wasm-pandoc=20 >> >=20 >> > Any other tips or suggestions?=20 >> >> What's wrong with those options and/or what are you trying to do? Any=20 >> tips would be geared towards whatever issues you're trying to overcome.= =20 >> >> Daniel T. Staal=20 >> >> --=20 >> ---------------------------------------------------------------=20 >> This email copyright the author. Unless otherwise noted, you=20 >> are expressly allowed to retransmit, quote, or otherwise use=20 >> the contents for non-commercial purposes. This copyright will=20 >> expire 5 years after the author's death, or in 30 years,=20 >> whichever is longer, unless such a period is in excess of=20 >> local copyright law.=20 >> ---------------------------------------------------------------=20 >> > --=20 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 e= mail 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/c2cf5da2-5020-4bb6-a17d-d28b6d61ab2dn%40googlegroups.com. ------=_Part_2857_2062425743.1629981785116 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey, imma just throw that in here. This is the code i use to call Pandoc fr= om nodeJs.

https://gist.github.com/BartzLeon/5e5f8fae907= 860b94033ac5d0affbfe2

raus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Mittwoch, 25. August= 2021 um 15:31:21 UTC+2:
Thanks for your reply!

These options = are perfectly fine, I was mainly wondering if I was missing anything simple= and/or obvious.

My use case: Converting Markdown stored= in files to HTML (one file at a time).

--
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/c2cf5da2-5020-4bb6-a17d-d28b6d61ab2dn%40googlegroups.= com.
------=_Part_2857_2062425743.1629981785116-- ------=_Part_2856_1081559500.1629981785116--