From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28284 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Kayser Newsgroups: gmane.text.pandoc Subject: Re: MacOS Big Sur update breaks HTML generation Date: Tue, 4 May 2021 16:12:35 -0400 Message-ID: References: <32ca13a2-ae66-4157-9a3f-3a8546b9e5b8n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000096bf2005c186b318" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: John MacFarlane Original-X-From: pandoc-discuss+bncBDI5HSH56YLRBP6VY2CAMGQEYYXHKFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 04 22:12:50 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1le1PV-0001RZ-MO for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 04 May 2021 22:12:49 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id 59-20020a9d0dc10000b02902a57e382ca1sf7031216ots.7 for ; Tue, 04 May 2021 13:12:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620159168; cv=pass; d=google.com; s=arc-20160816; b=XAR1trrtiG0vMXFHQHtofaLqI3C+iZDtpYCBo0MczXAjKGtfdswJLWQasQhawb+jBg 1UPs66wu6VLjvn8iTaUQ4Sr3mfYEatiriMtdWxUSvb6bU5mAs287XCMAwiuuw3FqJSaM ZF/szedOIo571yBapADoTduwicEYL7NCIZ28SCeQtF0LFzLzImSIJuF8Lk6FI0zu+0Gs B0VDZgUA30g5/fUaf9UI6Yh4Shk0DMSsOPO8V/po8LXSfJfQF0UCya40Da+SGJ7tV3ii NSEJI4e9th+wagDcwt3oMmBPUeDTSLY/4sYW8eXOsD9+mQNEfipJJKbZ7dRZSwZbOf7d mbaA== 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:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=hvcDJrs8yNAlt5x/yklNGDBE3lZgfbAZZv5VjBfO2kQ=; b=J/z7nCkUO4fQdPn5E9Pv0/HQX2Aoc5Drj/h2rCBsY46JuuD8jPbnQ+v5vo2hwt+jb2 cYJUufGMGCuBOqITwHRRiPgc+pghbQRaYprRIBD4EoKR44d+BQw30itR0BMp0CDh9WGD kveYOR6csi5Q1wbP/wp/QQGeNKVarybhQ85mehGgvUVcXtQA8kuW6XqXPp7wM7rGPHCt GUKMEEmWsOHr91LCtVOnbjYYS6RHuinJt+Tpf6VJMm2D/4X5bTtr8wgcb5SUpdkgDbuH SvpjIoAoZFjCGCfM5LZaFAKBTDxCjRBfQUatqMrlzfNrb1rX8ZBDTfdi1v/75xTVfE7a QviQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E/dkM79N"; spf=pass (google.com: domain of james.kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=james.kayser-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:cc: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=hvcDJrs8yNAlt5x/yklNGDBE3lZgfbAZZv5VjBfO2kQ=; b=l9qGTdPHhYEmv7NnbmNiXU6jluNsUYXW8X8dylL7zZ+JNZqIBfK+utGwi2Us3tb3xM 9THNYJ1COcUML5ZMp9JHboxXnNtR/j9rMAcORsOCaeJmFjLYvmHz8ZghEkujjfwEF2N3 Te0EkrwQw2a3ATRfc9ybo4E7oJrHNvUXIa2Q+uKFafzvcB/uqjAJBRZdcXMTNzrsUrIb iOJzJGj2nDUC4WdOiI1Owdw9u7JmI41/HN7SwQ0ctSIGKgGwS5jJRs5kSOdxof7GjnP6 QA2CzFaB7t+z8YbhOh69fqfXeG0mFHzL/TcNuejVV5YY7r4KLttRpo0hdoKggrrpuMMn WjhA== 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 :cc: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=hvcDJrs8yNAlt5x/yklNGDBE3lZgfbAZZv5VjBfO2kQ=; b=HvIVpND7XuRTLyY4Q7MNH2r7gKmnh5PZRDnw4zjVOU886NLfUWjIJBNgyyrx00DXJj WpEE3WG7iCOj7RjxK0W+3SHsOJua6uYSg0NVuuvMIzgh/CpJVPHJ471rd2/mbE5mjbdU pFVFoX/j6IdxSz/XnL94D8K1+UIBa70Q9kawlYTmqDmczVy/9ZFs3WJ0YMRP4egVSaje kZEOd6SGHa749ZvU8CuHXSeHbq6cvNCR80yKr5fRX7RFAdvmlSCTFz9Uo9QW18BQgOzv rigA+jVuN/JBMl8420n1G57YUBp8nJE0YZMnlO7TMUKsFe+2GE1AE4OImsw8jSmra4FD nMUg== 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:cc: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=hvcDJrs8yNAlt5x/yklNGDBE3lZgfbAZZv5VjBfO2kQ=; b=qq4Ddf+XhRB/NyVsyGhzpa+lZah3c0p8wO3EQh805uSMAvnBEknIUEsN6bp3RypRqS Met+JOeP+JK0X9KLra0PQo4AMcy7TNAifqSAgJPkmvo/dgBhIcTHbnmbmRswYuDAjVwM t4Fr3yRihwnptch+Si3/Mvp4hJ+UMnYu7QLdDJioS4YEjeusm4k8MznCaVasvgyH0s5e srqII2C5oPwqMACKYdbnPa5EwjhbA/3l8kvFlQ/J1Z9fzFXSopyFPgD0zLsGiMgrftC0 ZTGKbANVyrzzb/VQX0Az0OYMYf+Z64K8E7DxSpYC9+cgRAyies+DwR+J7eEE2JYLVn28 e+Jg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533XnnDwsw9cDIqhuo5RrtzXTf5ibnA22WR87NbdV5La8mENL6yP EoOGvBtIADpET5SAQGKmnxU= X-Google-Smtp-Source: ABdhPJy1WsAy+TFjGwZ5BID3kkLZpKs6cMOdchdOiuVijTIvSB5V2paBbwaOYkXQ7vNceQG0sQklww== X-Received: by 2002:a54:4395:: with SMTP id u21mr6388542oiv.174.1620159168717; Tue, 04 May 2021 13:12:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:200d:: with SMTP id e13ls2335323otp.4.gmail; Tue, 04 May 2021 13:12:47 -0700 (PDT) X-Received: by 2002:a9d:6e07:: with SMTP id e7mr15246365otr.30.1620159167190; Tue, 04 May 2021 13:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620159167; cv=none; d=google.com; s=arc-20160816; b=sUmg4H0ivP201f9Cpom4zxN15O52FzFKq1eutw9htRyr0gnsd0DH8BKuvHq7uQTQxY xda1wA5lx4QGZZmN+RsA4KlDGOd8g5Re9E38kQ9+NWwWuNuJsQWtml4H7EXSLx03dDzE 9p3DG4AWEqnz8S3+X+PeB6b2CUnf5oH0U+Viqqo5H4dF8Zj6JmrqrJ7J/sZTcDPViyeM 4KD5Fk92MF0d8LXNxTSrNKsqOc45jomwzINJwdhVauRuepzyrJE9bNPgD0vHIgT/BO5V DenGBZm48vEVm7z28fbs0YztmZ6S/AVD83Dk+m5Sst9uvW3VtPxaJ4yXspT1+yAW4MyP NsbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=9jv0DIebC+zFt8z/xKBe8qUR0JqbeV04T3U2w7DW5Lg=; b=e6oU0xI/XrUbkDUtl4GyQKPtfwHAIPVIyOs7mvck7ZMjLX6IvH9NcVcCW0XIBSYV0D sCWoRx0f1Xwu4DWL/+LqWS3v8op+z2vlJWQY0HzBbd/ATl4lfnajjliXx3Wz6iCjhlQF 3IsBcHlfFHoc8KPlgbS5GQff9zG2/Ab8dU3XlphDIrcIkjfYBm2LI6Q1sBFAs05/kQLw Tm0awFNtxY3XulHAr+F8DRd+y/wb0K/WXU1cLbvf/UFGx+J31/QU/QRj/zhmdCQ2npz4 9k7L5AunOLIlqwdfXSRarrtaCP/EoQEY/ppy6iqUEYuGIlPgrLHZGi1PhhCnsG01YYz+ jHxQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E/dkM79N"; spf=pass (google.com: domain of james.kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=james.kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com. [2607:f8b0:4864:20::636]) by gmr-mx.google.com with ESMTPS id f4si499776otc.2.2021.05.04.13.12.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 May 2021 13:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of james.kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) client-ip=2607:f8b0:4864:20::636; Original-Received: by mail-pl1-x636.google.com with SMTP id s20so5933678plr.13 for ; Tue, 04 May 2021 13:12:47 -0700 (PDT) X-Received: by 2002:a17:902:c3c5:b029:ed:3ff4:70f3 with SMTP id j5-20020a170902c3c5b02900ed3ff470f3mr28607919plj.12.1620159166331; Tue, 04 May 2021 13:12:46 -0700 (PDT) In-Reply-To: X-Original-Sender: James.Kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E/dkM79N"; spf=pass (google.com: domain of james.kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=james.kayser-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:28284 Archived-At: --00000000000096bf2005c186b318 Content-Type: text/plain; charset="UTF-8" In an effort to make the answer more easily found for others who are also asking the wrong questions, and looking in the wrong places. And also for documentation purposes. -M document-css=false will stop pandoc from inserting CSS into the HTML header. The long story.. An ansible script sneakily did a brew upgrade on a macOS dev machine just prior to a big sur update. It upgraded pandoc (which had not been upgraded in a while), then the OS got upgraded. After reboot, pandoc started inserting CSS into the header that broke the styling. I tried to run pandoc on a fresh install of linux mint with the latest updates and the *latest version of pandoc* to troubleshoot. It didn't insert CSS into the header, and the output styling was not affected. This further led me to believe the OS update broke something. I Grabbed a new mac that also had the new version of Big Sur, installed the latest version of pandoc, and it generated lots of CSS that broke the styling. So yes John, you're 100% correct that it had nothing to do with the Big Sur update, and pandoc got upgraded. -M document-css=false proved that. Thank you, I owe you a drink! -James On Tue, May 4, 2021 at 1:35 PM John MacFarlane wrote: > > It has nothing to do with Big Sur. Most likely you've installed > a different version of pandoc than you were used to. > > So, check the changelog > https://pandoc.org/releases.html > > and you'll see an announcement of some changes to the default > CSS, as well as a way to disable it if you don't like it. > > The html5shiv thing has always been there; it's a way to get > the HTML5 features to work with old IE versions, and it is just > a harmless comment otherwise. (At this point we could probably > remove it. IE 9 was released in 2011, and anyone using an older > version at this point should be very strongly advised not to!) > > James Kayser writes: > > > I use Pandoc to convert a markdown table into a standalone HTML, but > also > > merge it with some HTML using the -B option. A recent update to MacOS > Big > > Sur causes pandoc to add additional, unwanted CSS information in the > > > section that throws off the formatting, as well as this comment at the > end. > > > > > > > > This did not occur prior to the MacOS update, and this does not occur in > a > > Debian/Ubuntu based linux distribution. Only macOS Big Sur (so far that > > I've found in my limited testing) seems to be affected. > > > > Manually deleting the excess information in the head corrects the > > formatting, but I cannot figure out a way to have pandoc not put it in > > there. I've tried using the -B -H, but it keeps putting it in there > above > > my CSS formatting. I even tried changing my default browser in the OS > > settings to see if that corrected it, since it seems like maybe its > > detecting IE9? I dunno. Does anyone know how to fix? Been at this for a > > couple of days now. > > > > Thanks, > > James > > > > -- > > 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/32ca13a2-ae66-4157-9a3f-3a8546b9e5b8n%40googlegroups.com > . > -- 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/CAPqHhWX9Fa2-bKJshWDhBHUw70FZkW98p6P647DqN3ShZELBMw%40mail.gmail.com. --00000000000096bf2005c186b318 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In an effort to make the answer more easily found for others who = are also asking the wrong questions, and looking in the wrong places.=C2=A0= And also for documentation purposes.

-M document-cs= s=3Dfalse

will stop pandoc from inserting CSS = into the HTML header.

The long story..
A= n ansible script sneakily did a brew upgrade on a macOS dev machine just pr= ior to a big sur update.=C2=A0 It upgraded=C2=A0pandoc (which had not been = upgraded in a while), then the OS got upgraded.=C2=A0 After reboot, pandoc = started inserting CSS into the header that=C2=A0broke the styling.=C2=A0 I = tried to run pandoc on a fresh install of linux mint with the latest update= s and the latest version of pandoc to troubleshoot. It didn't in= sert CSS into the header, and the output styling was not affected.=C2=A0 Th= is further led me to believe the=C2=A0OS update broke something. I Grabbed = a new mac that also had the new version of Big Sur, installed the latest ve= rsion of pandoc, and it generated lots of CSS that broke the styling. =C2= =A0

So yes John, you're 100% correct that it h= ad nothing to do with the Big Sur update, and pandoc got upgraded. =C2=A0-M= document-css=3Dfalse proved that. Thank you, I owe you a drink!
=
-James

On Tue, M= ay 4, 2021 at 1:35 PM John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:

It has nothing to do with Big Sur. Most likely you've installed
a different version of pandoc than you were used to.

So, check the changelog
https://pandoc.org/releases.html

and you'll see an announcement of some changes to the default
CSS, as well as a way to disable it if you don't like it.

The html5shiv thing has always been there; it's a way to get
the HTML5 features to work with old IE versions, and it is just
a harmless comment otherwise.=C2=A0 (At this point we could probably
remove it. IE 9 was released in 2011, and anyone using an older
version at this point should be very strongly advised not to!)

James Kayser <james.kayser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I use Pandoc to convert a markdown table into a standalone HTML, but a= lso
> merge it with some HTML using the -B option.=C2=A0 A recent update to = MacOS Big
> Sur causes pandoc to add additional, unwanted CSS information in the &= lt;head>
> section that throws off the formatting, as well as this comment at the= end.
>
>=C2=A0 =C2=A0<!--[if lt IE 9]>
>=C2=A0 =C2=A0 =C2=A0<script
> src=3D"//c= dnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
>=C2=A0 =C2=A0<![endif]-->
>
> This did not occur prior to the MacOS update, and this does not occur = in a
> Debian/Ubuntu based linux distribution. Only macOS Big Sur (so far tha= t
> I've found in my limited testing) seems to be affected.=C2=A0
>
> Manually deleting the excess information in the head corrects the
> formatting, but I cannot figure out a way to have pandoc not put it in=
> there.=C2=A0 I've tried using the -B -H, but it keeps putting it i= n there above
> my CSS formatting.=C2=A0 I even tried changing my default browser in t= he OS
> settings to see if that corrected it, since it seems like maybe its > detecting IE9?=C2=A0 I dunno. Does anyone know how to fix? Been at thi= s for a
> couple of days now.
>
> Thanks,
> James
>
> --
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/32ca13a2-ae66-4157-9a3f-3a8546b9e5b8n%40googlegrou= ps.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://groups.= google.com/d/msgid/pandoc-discuss/CAPqHhWX9Fa2-bKJshWDhBHUw70FZkW98p6P647Dq= N3ShZELBMw%40mail.gmail.com.
--00000000000096bf2005c186b318--