From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29852 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T. Kurt Bond" Newsgroups: gmane.text.pandoc Subject: Re: Turn off headers for Mac OS clipboard content output in HTML? Date: Tue, 28 Dec 2021 10:48:33 -0500 Message-ID: References: <9ac6c67a-8aba-4a19-bde0-65e37340c5d6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000089cccf05d436c18e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2150"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJYFKFHUYHRBXHDVSHAMGQECTR3DGA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Dec 28 16:48:47 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f57.google.com ([209.85.166.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n2EiU-0000LM-VW for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Dec 2021 16:48:46 +0100 Original-Received: by mail-io1-f57.google.com with SMTP id k12-20020a0566022a4c00b005ebe737d989sf8301552iov.19 for ; Tue, 28 Dec 2021 07:48:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1640706526; cv=pass; d=google.com; s=arc-20160816; b=lrX1IJuiFXgGH9732X4v/0wvJ6iAwMstbXj7v62+Mm+bf/O7PueknaIMeaRjLyiZQJ GOK4g8K7sUpNERv/3jeV59N6AWYWHk+dfmSUQpOaSzFfaMsEfgjOQaaGjWG1EgUV3m74 GtL0jBIL5r77iMqg2bnPNOoqlB9TOgyYMLVVZikckFGEKofRMeUxLYUwHdbPd+Zr/gm4 YfFRf8MzobrYMTVdNqZTa4+kUbc3fJRb9qNEdrI5AcOzdapZ5wECE5JNKle5yPTj5h9M yH3B7UU5sRKOdaNB38bVo24L9JMfzO784zvcItSpgQ+uw0yIusQaAptKeINxlVdnEne+ wtOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=knMwNgsgLeZJS9BVEmHioiUukJzT+SHyMXuf8ObsWDk=; b=mlfqCaPA0jw/9mM3ffDlPLhSJ9HojUAa4xvsEVpHk6VHYK6nbYsdRPsJs1eXV84PEZ JaUSl2MEjIuL0r2je19hXA/1YQKaG/MLrvgKoa9HCu2BIx1KwsUlUBTJoALqMOWcbCHI QHamGAw8STTsaywSxusKRnmx1rwRSTDI4TBFxBjnjn8nyt43otL+tXLET5VxYRBPw0Q3 6V1zmWFDcKYZF02V5HyrtYXrnLLJEgUAARXahb3CX6nvziDdbg8e/LIgsR1TOdQy86ba tZcl/+isqaTIFALfuNvpYX0PGmLKzFRcee5QTL5gwd4TFO2WSJgHqIpwEsI0nDK/UZy1 V42A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ks+Enymv; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92b as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=knMwNgsgLeZJS9BVEmHioiUukJzT+SHyMXuf8ObsWDk=; b=G2WzNLM88wKRA4XmPLBRPNmn9TGIbV0ThWLcJSkW/e8nORziJBQYFd17vRZ6v8MhOk 8gDnRyfPEy4DUl/5pxdh8+h4+LhUcESX6JJR+PZoRZOtiSFPi8h9e0iu+wxxxG7ZMbed P51W1/U+dVtjQC2Uqd/okdNEQHcvyFjbP+rV3yCXIQ6+iNXcgH2ZC7YWznNuo3ePm1yw iuBPemywlHWsbHynBQj5JgJnmroxw1MluxPcPJIdcLhkMzuzF5qtMgPngUUpg2+poAYJ qAIEMHY1+/Qq/IEQwBDuUPtqbutxKsNWWRTacdc9psURCBvuDyjsWtvWJeH8zVj6GdLJ dDew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=knMwNgsgLeZJS9BVEmHioiUukJzT+SHyMXuf8ObsWDk=; b=AXJfUw8IBCg4M/JN8hC4uQwFfWlhe2Bf6A3PDy5YL+uk42a5+M6tUQ5/Y5ftjzs78Y SP8IzPuZDr9pcQ+AOHM8+jAXyWsrWkizMEilsaEZiP+JbNEuKn+pTyxcIIPJnXbfNX3E OWwLgivC9tRrHKy3m8cj6nPgUIXdAm96YhZT6+OJurDHgG0ZOp8ZWMaUAneFbr2XTKRb VzpMfbG+u/SNULeXvK/UQpNDwmUNbRpmgmtBjPHh8xWSVeO4WQr5E/y/wMY0e0f2ILYe yK6GjS2VYdsjHBQMXDx1lM+Kp4vwmZd7pB9XZoG9nfYI/lvvG5v2NONCypkS5mBXT8qp IhvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=knMwNgsgLeZJS9BVEmHioiUukJzT+SHyMXuf8ObsWDk=; b=NBptmijVwYTpa6w9Rd8mzBa5D2/wIKPR6rfm2D8KNd21p851XzYhFN21aZYFefTULN MMhXxjDQFFcTfQGfkjPLm8i1clOsmjUjFe739WLPT2uzF9nuPuW9irPKwa0j4t9MG8aL B23ewnS71d7x2OiYJiorcCA2R6gVU2l8OpSedQvEYccj482o+m1k3VfHEAsxuwVtLGZB l1li1RVZkwZkenmncePrrtUIk2GnWiMY27k09Iud7hEQq8N0O3x659TbcetetpK+sZu0 8+KYf7+i14FjpGs8UbEZQLdJW9Cid9aunz60EhiebqNj9YZArblzeTmx28IR/fiuKumz 6vtg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533LKU/gSmpchD5m6hR83aDwwxdf/kn15TmU8vIu2/JSUbFzRCnM Z/WHITcgrYLYpUXJN8QcRzs= X-Google-Smtp-Source: ABdhPJwHB/SVvK3PUTea1k9kfjwaZ8sqEZhOrhxfykb1FLCFRzx0R/1JYJuC2x88vEoVxJaDw6/dmw== X-Received: by 2002:a6b:7711:: with SMTP id n17mr9382225iom.21.1640706525909; Tue, 28 Dec 2021 07:48:45 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6638:3783:: with SMTP id w3ls2585390jal.5.gmail; Tue, 28 Dec 2021 07:48:44 -0800 (PST) X-Received: by 2002:a05:6638:258a:: with SMTP id s10mr9871978jat.65.1640706524575; Tue, 28 Dec 2021 07:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640706524; cv=none; d=google.com; s=arc-20160816; b=Q4kicsKnWciY2pzStY3qu4/X/Z8l2dqR9wx8UcivgE+PEA3XU/pxAIafcDgPf+O4nl 1MRFmSsa2WUeI2odqb5AiHcse8PgChF8WF2dyK/hdQ1MXqrRX01mXzfKaPLt19bEZRnN tjGheMNz4VZlK8W3yTVcG42aov5aIOZKPW6ElZVFPSloEaMYv505Nf64YY+h0CUTccpt NLGnhdhNUeDxgx6GgyvqzqF08ToFKFWsCX/RljxJ88cRelhiIvCxNiTm+K5hWheMdBvK dpTvSgsQwRkAlCvPjcKoo7ABpCnobz/pMM1//Ld+xgGRCRPLlxMXTo+A90V7RRCDGOqn SoGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/Diz4sq3cE4nYuYFvt0MBWtNgIZkINGMlp57ydCA5e8=; b=qP9z0DqjuCFBnY3kpX8UDQCVXZJ1KpRUJn3j+27ea9xIbOo8Vt0shzcsbCIncYkmNa GYNin0W/qpVNVVBBZafmPhRfyuHEF3xCvD0/ihhNNb0uyBD9EHb/vPly3qPSSKH5vyV5 qp5iu3ulk9gaXjg3Xo39CWFKrf39kU3wifd1ZzxuOGC/sBdvYtJ5vuTL2cCio56eKUO0 ezml0FEjbxh3Uv+j6hMPnye08NzcnUrMIVy5sNpwrsWsdjHwr9kcSM4pefAcG4mWqDSU 55ruL+fhAdEtbFwBX0nEcnLg0VdAY5mj+KcS9jsnc+PrpayWOb4xoKBlYlY7kwmq58S1 dfnA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ks+Enymv; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92b as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com. [2607:f8b0:4864:20::92b]) by gmr-mx.google.com with ESMTPS id 8926c6da1cb9f-2fc321a5b9esi1166645173.7.2021.12.28.07.48.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Dec 2021 07:48:44 -0800 (PST) Received-SPF: pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92b as permitted sender) client-ip=2607:f8b0:4864:20::92b; Original-Received: by mail-ua1-x92b.google.com with SMTP id az37so11834459uab.12 for ; Tue, 28 Dec 2021 07:48:44 -0800 (PST) X-Received: by 2002:a05:6102:3909:: with SMTP id e9mr5696578vsu.9.1640706523908; Tue, 28 Dec 2021 07:48:43 -0800 (PST) In-Reply-To: X-Original-Sender: tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ks+Enymv; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92b as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:29852 Archived-At: --00000000000089cccf05d436c18e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable When standalone is not specified, pandoc typically outputs fragments rather than a complete document. This is convenient for the case where you are processing multiple fragments into one document. (This happens in HTML output but also in other output; groff -ms, ConTeXt, LaTeX.) So normal HTML output I see when I don't specify standalone does *not* include the doctype. $ echo '* Bogus' | pandoc -r rst -w html
  • Bogus
This is with pandoc 2.16.2, installed with homebrew. On Tue, Dec 28, 2021 at 9:33 AM Joseph Reagle wrote: > The doctype declaration is a standard HTML feature and declares the > version of the HTML. Pandoc, especially in `--standalone` mode includes > these at the start of an HTML document. > > I'm confused, however. You haven't specified standalone mode. (And why > would you want them removed in any case?) And the behavior you are > describing doesn't correspond to recent versions -- I'm using 2.16.2. I'm > not sure when/if pandoc last used HTML4.01 strict. > > In any case, you could create your own HTML template, without a doctype > declaration. > > https://pandoc.org/MANUAL.html#templates > > On 21-12-27 15:04, philmac-97jfqw80gc6171pxa8y+qA@public.gmane.org wrote: > > I am using Pandoc to convert dumb quotes to smart quotes in HTML. The > HTML is on my MacOS clipboard: > > > > pbpaste | pandoc -t html+smart | pbcopy > > > > The output begins with > > > > http://www.w3.org/TR/html4/strict.dtd=E2=80=9D> > > > > and a blank line. > > > > Is it possible to turn this off? > > -- > 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/e8eac3cc-feb6-e3af-dc9d-= d3fe0b964925%40reagle.org > . > --=20 T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io --=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/CAN1EhV-RgQttr_0-LNmgHG-aMQ9L2Wre-_Ytz4PnghSF4S_8kw%40mail.g= mail.com. --00000000000089cccf05d436c18e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When standalone is not specified, pandoc typically outputs= fragments rather than a complete document.=C2=A0 This is convenient for th= e case where you are processing multiple fragments into one document.=C2=A0= (This happens in HTML output but also in other output; groff -ms, ConTeXt,= LaTeX.)=C2=A0 So normal HTML output I see when I don't specify standal= one does not=C2=A0include the doctype.
$ echo '= ;* Bogus' | pandoc -r rst -w html
<ul>
<li>Bogus&l= t;/li>
</ul>
This is with=C2=A0pandoc 2.16.2, installed with=C2= =A0homebrew.


On Tue, Dec 28, 2021 at 9:33 AM Jose= ph Reagle <joseph.2011@reagle.= org> wrote:
The doctype declaration is a standard HTML feature and declares the vers= ion of the HTML. Pandoc, especially in `--standalone` mode includes these a= t the start of an HTML document.

I'm confused, however. You haven't specified standalone mode. (And = why would you want them removed in any case?) And the behavior you are desc= ribing doesn't correspond to recent versions -- I'm using 2.16.2. I= 'm not sure when/if pandoc last used HTML4.01 strict.

In any case, you could create your own HTML template, without a doctype dec= laration.

https://pandoc.org/MANUAL.html#templates

On 21-12-27 15:04, philmac-97jfqw80gc6171pxa8y+qA@public.gmane.org wrote:
> I am using Pandoc to convert dumb quotes to smart quotes in HTML. The = HTML is on my MacOS clipboard:
>
> pbpaste | pandoc -t html+smart | pbcopy
>
> The output begins with
>
> <!DOCTYPE html PUBLIC =E2=80=9C-//W3C//DTD HTML 4.01//EN=E2=80=9D = =E2=80=9Chttp://www.w3.org/TR/html4/strict.dtd=E2=80=9D>=
>
> and a blank line.
>
> Is it possible to turn this off?

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pa= ndoc-discuss/e8eac3cc-feb6-e3af-dc9d-d3fe0b964925%40reagle.org.


--

--
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/CAN1EhV-RgQttr_0-LNmgHG-aMQ9L2Wre-_Ytz4Pn= ghSF4S_8kw%40mail.gmail.com.
--00000000000089cccf05d436c18e--