From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26018 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Adding minimal CSS to pandoc's default HTML template Date: Sat, 29 Aug 2020 14:52:01 +0200 Message-ID: References: <41422a08-cc8d-4480-8bfc-03d907cb2794n@googlegroups.com> <87r1rxa887.fsf@zeitkraut.de> <6497A421-E81B-45BA-8148-47B9CFC94C78@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006a7a5205ae03a3e6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1939"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB7U6VH5AKGQEB7LESGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Aug 29 14:52:19 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f56.google.com ([209.85.167.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kC0LB-0000NO-FJ for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 29 Aug 2020 14:52:17 +0200 Original-Received: by mail-lf1-f56.google.com with SMTP id r24sf680525lfm.19 for ; Sat, 29 Aug 2020 05:52:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598705537; cv=pass; d=google.com; s=arc-20160816; b=uRzb5eCoADsYV1Gd3bALxat5EXoRr5jPtky/zJCfk7lOflT1YpAx1yEZMLM+0kDX3E Zrk4nC/tw9OlX3GcOirP5CL0aVRSlgD442z701UdWN7WWxKHQecGHCxQyl/2G6W+mfI0 3+x3A6lMQNz14bNnlHmyrO5+VWKjREW2Db2v0Pl7uZrZzCXHg8jcKO2ZHHfKDF9T7Ejd S5WV/jXs89m1tvvSBCS647K1Sbr3MZiuqe1xbQdMh7T1C4PqP+DZpYMJt4TtvqaX1vlE rvoPYmfG69p+UAwQ69RMzgVPmfNtZOhE4zcp0b1XkrujOoHuenH84hVKyvrIHwzgW6BO nq/g== 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=f1zdhsUUK13KVHcSf/2UdONd+8ym1r/bRAAqCqDlm6A=; b=IHGMhf6P3sTWDAK942j9qYQDQTwVqNCS1mfGWJZb6KaONB/4ycKsKWGwyrY5GIy5ZT 9gGQxhyUUQR3N5hvAJucW+RFMiyTN9i6SB6L+a94EPtaQO16qWtTyuYjJtMdkxrHnO3g Xo5mi0lJrUTBWm28lJA3v+ax/7UU1CbUMbCToMrxOfC5HVBKLDFuRWPSiP4hCW1TZ/xX zGTYnnZ+1LAL/alHByM91uiKyOzz3Fe5JP3y9nQiOq2ju16zhPJKJ2EPbdJZpbB+BB7o JOqDCiCb1DM4gKqq+4wWKluSZSXW6nEul+GmsLIXD7qRnWLsdatyAhOEkOK2Xns+rV5C L9vw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xx13mwD0; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22c as permitted sender) smtp.mailfrom=melroch-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=20161025; 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=f1zdhsUUK13KVHcSf/2UdONd+8ym1r/bRAAqCqDlm6A=; b=DVHT2aJBA33iw0oUVH/Muy9uDYVKmzPhuWAYUwTAYS/kdS4f6ZspUQZ2TBfahZBxob eez4agBh7KDmfetzwA+9AcKjKyMeQilhmm4fOeEB0n8aNWi/uTHFa5wkhx04K/O75U2B vbl9Y9mSQyoLDOfb9EOj6iPOAbr/b/eTJN1GouxYU/yfB2rLOdBUJKUiRQvskUbVr2mA duLl4nNUCGE0azfTrwuKDcHAy9zE3ZorfW50EyoCvDl1nmPliLEeO8KlgBYqRWzKsMlj FEBYuOVtYNaTwNxsciIRMqU21t4d+hCM0gPDIonjWUX31nBqCclHAcsgo6gv6KF1VHSx TluQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=f1zdhsUUK13KVHcSf/2UdONd+8ym1r/bRAAqCqDlm6A=; b=b97JWWztEL8a0Kc4I/t6twSvb0Q0/npRZ+v+hLH13Ow04rIxQ0RDS64brPGUEW0teq sksultMw96RXGFJNT5gUWlKBTPtznUvEXQZy2L91kTuiIoGgEIrCJlgrFOo6+buzLhj3 R54ugb7FAvR2WPTYURtMXGVkHu9kuzgnXrSmREpu3WOzcZ01MP/GiW6nVDwn5WHxxSlg Czzh+bhbksi5x7SPrB3pbYyktquIngdi/I20qaqT9pgmXVuj4znFEcqCC3QmAsQE1grb uIKG/ty+m4d5sQZnKrBvVVMlbYyKLiGH9wa6rQIjjySkcamTD/fTz1NRdN8KHOL+zXhZ Qg3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=f1zdhsUUK13KVHcSf/2UdONd+8ym1r/bRAAqCqDlm6A=; b=smieALM8pMW3RfM6sweGw6nDWt66tQ1nzQRd9Jg0CgK18Hme1/J6jzCkeDNzrRtl8O 65hw5EwqTfHcLpRZOSYVlKtvcKD3zET+1sEv79sTDfT8BuScCyQGanRtMTj0M2EkBziU SDeaqLQ7ix2eIAm8oPa4zDEyFkw5SGvaRZx4V2adQ41gjv18RD+QN2geard5ogUWfX3U BzRxw5JoGzV3ktc29CyQuyl4du9Iv4dh2LmJMeg2jOznte0X3BiZzgZmcJvwc48vhde3 j4fL2ucG/hgtqTNag0/wsPoSlJGWGyvpYF6wsN2oVUh5Hkx8S5W5k3MrEw5liJMlRRv5 +Ddg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531PP8zqQXid/dnyB4qQGkadmE2HMEh3CJbKZ5FY2uvROEM8ggKz nO4zQMRPEAzIApJ5vP+ZQhM= X-Google-Smtp-Source: ABdhPJzipZeJM4uDZ3Bln3NTSJk1KZtUMdvYp0qio7EKaj45HyGyu2aVrZWW37z8bfoOiu0myBVaDg== X-Received: by 2002:ac2:522b:: with SMTP id i11mr1581948lfl.30.1598705536912; Sat, 29 Aug 2020 05:52:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:5e33:: with SMTP id o19ls481127lfg.1.gmail; Sat, 29 Aug 2020 05:52:14 -0700 (PDT) X-Received: by 2002:a19:5503:: with SMTP id n3mr1562532lfe.91.1598705534223; Sat, 29 Aug 2020 05:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598705534; cv=none; d=google.com; s=arc-20160816; b=yvptAUv2D+BBXVDf85KzFDnXjKgOj1b5U08tPdX5zE1QO8NFTurTez9K9nyfnMsl+2 2SBDdKPcr0RB7jID8u8Fsc5u/B9H7xIOn/UAFcNBPbmL61Jd7utg7tTyV5v/GX3ixlI3 60HFnczGtumaQTuDMDVLvXaSISBbSmdEBp569oPeVyjTz/UW3gioAKgFG2btsP9mcLJZ Vj75ahmlYZDlIe2e0StxiazByRc3V6XJ12fIu/FAn4wo1yj9b9K0q6IWe3yO4U2Fo2Ng LYbyfMjko+jUVzbi/HorhblU8D3DliaiE6VcOxHn7JadQULlr7MQfRrrqa5vMWsOXmwo VrEw== 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=qd9KI5KSAn5LfEOVhC+kpNMPvJgrfBuBjNKy01Icfns=; b=R9trgS0zLNo7sz+OgXUliX4L5Ag1OV3CGY1BTHpL458PhOjYAEOubQK4w3DHyWCSTX GH8yIOXUH2aDyQghPiaQ4XBAHS7IRD5+KTLdFuZC5n8UC3ddwQCTSPpNawux/1tjeQrf 5HWDx0oNOBbPd/IQjZcebGlVgxkiv3WDzpA1YWiyDE+gvTzM+9iDlgAE5W17MygGi3qJ U10NcROdlIrhPO21D7cSRtHfrwL/3nZGtPLSZRGL35VZ4/86afr+wET393OVBJgKFCLK wVnwBoAr++jf01OPIWmeCaE5JbTuy4YBNa5BrskAFBansEQnsF8PgavlqvSDMXVN+fhP ANhQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xx13mwD0; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22c as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com. [2a00:1450:4864:20::22c]) by gmr-mx.google.com with ESMTPS id r28si93552lfi.0.2020.08.29.05.52.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Aug 2020 05:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22c as permitted sender) client-ip=2a00:1450:4864:20::22c; Original-Received: by mail-lj1-x22c.google.com with SMTP id t23so1824038ljc.3 for ; Sat, 29 Aug 2020 05:52:14 -0700 (PDT) X-Received: by 2002:a2e:80cd:: with SMTP id r13mr1452657ljg.148.1598705533351; Sat, 29 Aug 2020 05:52:13 -0700 (PDT) In-Reply-To: <6497A421-E81B-45BA-8148-47B9CFC94C78-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xx13mwD0; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22c as permitted sender) smtp.mailfrom=melroch-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:26018 Archived-At: --0000000000006a7a5205ae03a3e6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > However is the current impl. such that the minimal css (document-css) does not get added if we use a custom css style etc. Because converting an older document will result then in a minimal css + custom css? Yes apparently the default minimal CSS will not be added if the `$css$` variable is defined/true. However a `nocss` variable might be in order so that you don't end up with empty/malformed style/link elements in case you truly don't want *any* CSS. --=20 Better --help|less than helpless Den l=C3=B6r 29 aug. 2020 12:07Ganriel N=C3=BCtzi skrev= : > It would definitely be a good idea to support a minimal css such that the > document is somewhat sane. but anyway where does it stop, like Albert sai= d > it opens the box for requests like =E2=80=9Eoh can we add this or that=E2= =80=9C to the > minimal set :) However is the current impl. such that the minimal css > (document-css) does not get added if we use a custom css style etc. Becau= se > converting an older document will result then in a minimal css + custom > css? > > is there not room for an external solution: a repo with pandoc css styles > which can be used and which is referred to in the doc? > > BR Gabriel > > > > Von meinem iPhone gesendet > > > Am 24.08.2020 um 22:03 schrieb John MacFarlane : > > > > Daniel Staal writes: > > > >>> The only concern I have is that this could open pandora's box when > >>> is comes to requests for CSS tweaks. But this seems like a minor > >>> problem. > >> > >> It's also worth considering that not all HTML output is fed to a > >> browser. I've used Pandoc to feed to local previews, or to sites that > >> can ingest HTML and work with it. It's probably embedded into some > >> pipelines someplace as well. > > > > You can always use "fragment" mode if that's what you want (no -s). > > The CSS will not be embedded in this case. > > > > For local previews, though, won't it be better with the CSS, > > which gives you a sane margin, fonts, etc.? > > > >> I appreciate the thought on this, but I'm not sure it's something we > >> want on by default - and it's also something that can be implemented > >> fairly easily by the user editing their default template. > > > > True, but if this is an argument against it, wouldn't it be an > > argument against *everything* in the default template? > > > > -- > > 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/m2v9h7x13x.fsf%40johnmac= farlane.net > . > > -- > 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/6497A421-E81B-45BA-8148-= 47B9CFC94C78%40gmail.com > . > --=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/CADAJKhDJ6NfpeeEDzkeUc%3DLtTShsCL93vPjZdOQ-qkLdxpc2Hg%40mail= .gmail.com. --0000000000006a7a5205ae03a3e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0However is the current impl. such that the mini= mal css (document-css) does not get added if we use a custom css style etc.= Because converting an older document will result then in a minimal css += =C2=A0 custom css?

Yes apparen= tly the default minimal CSS will not be added if the `$css$` variable is de= fined/true. However a `nocss` variable might be in order so that you don= 9;t end up with empty/malformed style/link elements in case you truly don&#= 39;t want *any* CSS.


--
Better --help|less than helpless
=

Den l=C3=B6r 29 aug. 2020 12:07Ganriel N=C3=BCtzi <gnuetzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
It would definitely be a good idea to support a minimal= css such that the document is somewhat sane. but anyway where does it stop= , like Albert said it opens the box for requests like =E2=80=9Eoh can we ad= d this or that=E2=80=9C to the minimal set :) However is the current impl. = such that the minimal css (document-css) does not get added if we use a cus= tom css style etc. Because converting an older document will result then in= a minimal css +=C2=A0 custom css?

is there not room for an external solution: a repo with pandoc css styles w= hich can be used and which is referred to in the doc?

BR Gabriel



Von meinem iPhone gesendet

> Am 24.08.2020 um 22:03 schrieb John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org&= gt;:
>
> Daniel Staal <DStaal-Jdbf3xiKgS8@public.gmane.org> writes:
>
>>> The only concern I have is that this could open pandora's = box when
>>> is comes to requests for CSS tweaks. But this seems like a min= or
>>> problem.
>>
>> It's also worth considering that not all HTML output is fed to= a
>> browser.=C2=A0 I've used Pandoc to feed to local previews, or = to sites that
>> can ingest HTML and work with it.=C2=A0 It's probably embedded= into some
>> pipelines someplace as well.
>
> You can always use "fragment" mode if that's what you wa= nt (no -s).
> The CSS will not be embedded in this case.
>
> For local previews, though, won't it be better with the CSS,
> which gives you a sane margin, fonts, etc.?
>
>> I appreciate the thought on this, but I'm not sure it's so= mething we
>> want on by default - and it's also something that can be imple= mented
>> fairly easily by the user editing their default template.
>
> True, but if this is an argument against it, wouldn't it be an
> argument against *everything* in the default template?
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m2v9h7x13x.fsf%40johnmacfarlane.net.

--
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@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/= d/msgid/pandoc-discuss/6497A421-E81B-45BA-8148-47B9CFC94C78%40gmail.com= .

--
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhDJ6NfpeeEDzkeUc%3DLtTShsCL93vPjZ= dOQ-qkLdxpc2Hg%40mail.gmail.com.
--0000000000006a7a5205ae03a3e6--