From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32010 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn_Stenborg?= Newsgroups: gmane.text.pandoc Subject: Processing multiple documents on stdin Date: Wed, 18 Jan 2023 04:20:33 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_16404_84397780.1674044433236" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29536"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCDLTYOW7YMBBEWIT6PAMGQEAVEHSXY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 18 13:20:39 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pI7Qk-0007Rt-7l for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 18 Jan 2023 13:20:38 +0100 Original-Received: by mail-ot1-f64.google.com with SMTP id t20-20020a05683022f400b0068655e05e7esf880964otc.22 for ; Wed, 18 Jan 2023 04:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=FAAZuxRP/rdyKOCLSR7qCKD02mBcZ3ssFTX48e4UMdg=; b=ECOCnPirMpER9MUd3z5uNIj/Grh1tHxoigdq9bRFQhwHYE/ZBw3tSd9yIpCgghqFCM XoTk1GEOppP0cphtQVF9j31KqIYMycmRZgjxDr91WHt+SgAEZE+tknteWl5h090T16+W cXR1+uQTVOthC8n4sFtRgDLrWjhPe5r6g83TM1HTND/l72cEbMlAEjmWZhV8j8HwD2Ky t7nUAz8iCvd6rd6VpYoneeJ85nYcR3Xf8UVT8ODDN2F5momaMfVBRxyQOLX+e0lO/eye ulmqbjBaI3+t66o6F1k4RUkNJnXtrKmHk3Fd/5nMNm7KmMXIhHGEzWjJCC1AQBXfhIxJ 0Enw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=FAAZuxRP/rdyKOCLSR7qCKD02mBcZ3ssFTX48e4UMdg=; b=Wdic3YIV+SCyGr1aBpq6/fqebaltIGaQM2zqh5kPUQ4+m5/cowLJPPwVjORlcVMfQa Qa/3DOncH+EBXIqT4yut6nE3t+T+VAaw9vIJ1xqRHNBAhmCasmdExHchoN+O5Qk2EiQp ievG1sXYrLfogwl/PhpFO9HkyvJvnkeCda7MeqbtvEXbCd0Si9TW9cprJ+gOL3ljTL0l iZwgZcolcQJJLrBlBLUS9Z3mrbeenREmjUYqcNFJwRGNn8PmAM5IzWqJbIqvitKPwA5K iaXLFahFFOO1asZDqC9s+U3eL9J8VB+DMFNqtMWG8fI71zmcOFACfQxGsOdLaPtQ7G2e a28w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=FAAZuxRP/rdyKOCLSR7qCKD02mBcZ3ssFTX48e4UMdg=; b=BK7j3MFjwIduMpVPDTS4DwVM8tbhmzvq8cxkmLKx8/E7Kamc6CO0YVsRbubF1puQ8W T2Oc4oGDyUmx3TUkUX5yo9DeVxmwz/xdN9jjrcz6MCelmNfPKU3F2bZ+J68YUMbocQVH ZX95R2o5qmSB2FdZ3N+Tj9NFGO5CUSGceR5BQjijL+AVv+rAPai+htYHJomd/ibn5UMw VDFoJjscUoCXDvIZoEqLYH+oMgMTKqjXjcUjQYQwyzblncVis9pXiV2INkwMSkHQgla6 FhDDj+7aXekMrOaJUVDFMFoK6PggovxbGz9jULcltF0HNRDPiyzB2iZeI2X3zX3R5Oz3 qFNA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2krYXczFNyRxkoRM6Kz2h71BC3DcrmY+o3bbfrzrEus3K2hDjOcj HbMX64YHnMZcmdk7EnGMgmI= X-Google-Smtp-Source: AMrXdXvugi3BUVWsDiA2AMlCD4hM1uwqUfhJ3xIja+WCK/EaoA0D7tKWHEfORsc95YC/I1zuSHFy8w== X-Received: by 2002:a05:6808:613:b0:364:9cd8:6cf5 with SMTP id y19-20020a056808061300b003649cd86cf5mr309196oih.199.1674044437031; Wed, 18 Jan 2023 04:20:37 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:73c1:0:b0:670:6b50:739d with SMTP id m1-20020a9d73c1000000b006706b50739dls3631876otk.6.-pod-prod-gmail; Wed, 18 Jan 2023 04:20:34 -0800 (PST) X-Received: by 2002:a9d:61d1:0:b0:676:54aa:ada3 with SMTP id h17-20020a9d61d1000000b0067654aaada3mr399295otk.276.1674044433858; Wed, 18 Jan 2023 04:20:33 -0800 (PST) X-Original-Sender: bjorn.stenborg-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:32010 Archived-At: ------=_Part_16404_84397780.1674044433236 Content-Type: multipart/alternative; boundary="----=_Part_16405_2016692509.1674044433236" ------=_Part_16405_2016692509.1674044433236 Content-Type: text/plain; charset="UTF-8" Our toolchain needs to perform separate markdown -> HTML conversion using pandoc for a large number of table cells (for various reasons), which for some documents currently entails making thousands of calls to the pandoc binary. It would be really nice to be able to stream multiple documents on stdin to pandoc and get separate outputs. This is not currently supported e.g. by passing a file separator control character? Are there any other ways to achieve this? We could spin up pandoc as a web server but this would be fairly awkward and i assume come with some additional overhead that isn't really needed since it will just be used locally anyway. -- 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/f0452de0-6214-43fd-b090-de2fc81c3f2an%40googlegroups.com. ------=_Part_16405_2016692509.1674044433236 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Our toolchain needs to perform separate markdown -> HTML conversion= using pandoc for a large number of table cells (for various reasons), whic= h for some documents currently entails making thousands of calls to the pan= doc binary.

It would be really nice to be able t= o stream multiple documents on stdin to pandoc and get separate outputs. Th= is is not currently supported e.g. by passing a file separator control char= acter? Are there any other ways to achieve this?

We could spin up pandoc as a web server but this would be fairly awkward a= nd i assume come with some additional overhead that isn't really needed sin= ce it will just be used locally anyway.

--
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/f0452de0-6214-43fd-b090-de2fc81c3f2an%40googlegroups.= com.
------=_Part_16405_2016692509.1674044433236-- ------=_Part_16404_84397780.1674044433236--