From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25984 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Adding minimal CSS to pandoc's default HTML template Date: Mon, 24 Aug 2020 13:03:46 -0700 Message-ID: References: <41422a08-cc8d-4480-8bfc-03d907cb2794n@googlegroups.com> <87r1rxa887.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19133"; mail-complaints-to="usenet@ciao.gmane.io" To: Daniel Staal , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBL52SD5AKGQEDQ77QHA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 24 22:04:03 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f188.google.com ([209.85.215.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kAIhH-0004rK-2e for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 Aug 2020 22:04:03 +0200 Original-Received: by mail-pg1-f188.google.com with SMTP id e4sf5951645pgv.7 for ; Mon, 24 Aug 2020 13:04:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598299442; cv=pass; d=google.com; s=arc-20160816; b=Tx19G1OLIHJRmuBHV+VB36J6vAI4Xnys/r/f8mWbEKAjw4vfRC2P32VclKTJg5pGf5 doUxVZpspLztZIXpYdhVp7cbqomW7+sHZQ+HtK/Q3MNtYeDyR1145heScyEC+kTnv2Lq Y4dw5EsVb4xbnqDfQaesqRVWsRzdMjBMNjDimzvrv2mpTKpMzRCfVEYu0Pe1J9bZW6QU X5ns8mi3MTUmolgu4b5e59jBzCJe2CMkyc5mMNqvt6heJTu+r9S5yLidYB4sooIShksf I3MdX5xRGmncB5YQCCGzoK9NygyrvhDDglWZ+QAZEF04mCqknh5t4JTe3qQCUxKzC3eP eoGg== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=c64PWXGd92fVwQxvLa7bTDjGCZYYdAWv+knZhFkVuQs=; b=RVqe2bYxFhzYCEHALOa3P0R1FF1Ju8h3FYNmsiv4Obm7mhChMCK2CL560GMwgGfY0V vOGxSZJXifPWw2OPT04y4MV/+1WbfYLNwLVy6pJnXYyLHyL4EkJVE75/yOInAFE/zns6 peDt9YsgDy2Ii6Bb8TgOj3pvKxP4N/gxQ3ziOQnRdPhxwjmqUCBBeVaAf8LXFK7SyBxb IlQTc0lhT2IXJ3U/w98kgTSyx3PunTdEPxMCs/LksrGCN+Vq4JAOkLMTfbJEbcj3vusW JimG9UbA+YZPDmOHdw0mwR9aUi59HXx8gOw4Rort+xsSdZRvt1PqqTc1qCf4JJoEUX+f VYow== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=H5YppPdl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=c64PWXGd92fVwQxvLa7bTDjGCZYYdAWv+knZhFkVuQs=; b=KhloV6bCyG5EjmaR2ODdBT4WsD/dDJnE3IdAuIy74E2SOcQ/TCnP3Eon4SrrUdIlkP dAUrxsTlxjYnlgRSyF6ntwimMicD6JQNTyzG+baYpLgZpHeWjRgONZFt5rL6dd1FTsFx WXcOER7jYadnKlRe+C+CNjA2R1GtKh495PafqmzlWc4iZ3h8l3Nv5HcyDQ/d4fmmURsG bknjikMQZvVZUB8dfUcG754SW8Z2+XA7FzQIfhVq7XDFi4OSdRdTIyCtnUy9+vi1Q2nf Tu/L8ktTKm5JI1z1W4jfDOtcKxJsILU5ObwdP38q83z1sf4nxLHmDlTP+AXzKedXsY79 EMhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=c64PWXGd92fVwQxvLa7bTDjGCZYYdAWv+knZhFkVuQs=; b=jUd0qGutZ1BhwY77fdeLcsSJHkC9RJoIJ/XHQ4FiZZeFI8Nioqbjf/w+SZSo45tEnD FXpBxkCag/JH4RXIzoXMg3dC2JC3le2mWOzj6eQfyXy1198ozDBtMQZGfAu1O46hOo8c l7ZoD19J+N8e+EqOgy7Ie3RK7Q1rA2w8GRTLcHRAS+Bi5bSizlJ9CC6xclNLMDV8zQQo 6q4xYgvB6Em8l4VLn+/7RLlvM1amcindXOTexcoM7GD98/g1dGgyj1Wyj/TgNlHzbrMa WB4Zk6DBRnQF1dDTkyC63PBNtruigExXJraOONgGAhsaW1jcSiaWA0+8q/74L7XgSc8W xFrA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5319qVJKagkBmAq+JTbFbIv3DffgD1PAvVXRXZctQNqXc+PaK5/T rnY0Ypb3Y1nI76YffQnU9EY= X-Google-Smtp-Source: ABdhPJwMAIK3AOQ1dFNlvm1zQRPNOwk5xGXrXhVdJtKeWdKKXhO92b+OFiC0xPJI/ArRy/9xyIh/OQ== X-Received: by 2002:a62:2587:: with SMTP id l129mr5279872pfl.47.1598299441800; Mon, 24 Aug 2020 13:04:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:b602:: with SMTP id b2ls4978354pls.11.gmail; Mon, 24 Aug 2020 13:03:58 -0700 (PDT) X-Received: by 2002:a17:902:b58c:: with SMTP id a12mr4956651pls.237.1598299438742; Mon, 24 Aug 2020 13:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598299438; cv=none; d=google.com; s=arc-20160816; b=x7kW2u5ysPm1cLVAeXU8GaVHyus0xSJ7wWNqqKoMTgGOR3vXLvlmCeMEg14tQNWBlX cC+adwlqZ4DnhquRkc4N4NG+8py8ECy5a0iqtq1t3Mt/jrRe6wyHlQnjKmS9v5JVLnP8 DwvHaCIo9dZySXglwsuEvxIF1BhfQBk/tkeTun+HUW0xcYqnJBySBbMP3rVScM0PxtOV NvRRhJ0ovvv/xu0sBgn5aVKisDgZdccYK1MejNF1sB5I9Txe9uKxJN7L/LWUeGufoMHt 9j96xjG1NDgXKYhTj/Se4uU1XSYZssateqQ3p0YIBTgnCQ0EBvMHWc9IjAw//AoF6GB9 wT/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=SmRY6o5L4lq+vP9iJiBKnqKc2qQp8MZq32SwbUfAgf8=; b=sPTH6tRBVTare2qvereyZHY+j4+Sldl4r6l0i4wcEhWN5TMB3fgZum/Pq0D1QfXElL G4Vj5PaBPnGDsdFLNIPkVVt8WoIH8Y69GSJ8WmXZ/NTGzsgSj97/KyISPeaDP7n/C/V1 3gpDTK7DwqaWh4Rx20nktovXkQVm8AsGPE8IqrcNYjAcyJM87ZfL1OcaHZRJXulaDLB9 Dc74at5eFGRXwOtNZm87yf5pxxjYqkqJiLZogLaWk8AHzHdvIBBif8pXaw/tk/KvYe5d O6Nasbw4hTJ0fcOpisB3rd6WGuIHYyG0nKdpmR5/EXkHbYcN0tTaBGBdAW6iAovNl0oh jKmQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=H5YppPdl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com. [2607:f8b0:4864:20::436]) by gmr-mx.google.com with ESMTPS id bg1si467419plb.5.2020.08.24.13.03.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2020 13:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) client-ip=2607:f8b0:4864:20::436; Original-Received: by mail-pf1-x436.google.com with SMTP id 17so5464825pfw.9 for ; Mon, 24 Aug 2020 13:03:58 -0700 (PDT) X-Received: by 2002:a62:2c89:: with SMTP id s131mr5102478pfs.325.1598299437792; Mon, 24 Aug 2020 13:03:57 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id s67sm13220866pfs.117.2020.08.24.13.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 13:03:57 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 52CF8A2A1; Mon, 24 Aug 2020 16:03:46 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=H5YppPdl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:25984 Archived-At: 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?