public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Jan van der Laan <djvanderlaan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Using --self-contained with external CSS results in CSS begin ignored
Date: Thu, 28 Oct 2021 11:26:33 +0200	[thread overview]
Message-ID: <CAD5Y919ZpM42gp4QOr-Ris8pw50LY1Zh5ciopi0VYSUCiRsgfQ@mail.gmail.com> (raw)
In-Reply-To: <dad8889efd374cd7a8d607a8609e6a87-NSENcxR/0n0@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3735 bytes --]

Yes it is. So this seems to be fixed in recent versions. I now see that
installing a recent version isn't as complicated as I expected it would be,
I should/could have tested this myself. Sorry for bothering and thanks for
testing this.

Best,
Jan


On Thu, Oct 28, 2021 at 11:12 AM <denis.maier-NSENcxR/0n0@public.gmane.org> wrote:

> Attached my result with a current pandoc version. Is that the expected
> result?
>
> Best,
>
> Denis
>
>
>
> *Von:* pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *Im
> Auftrag von *Jan van der Laan
> *Gesendet:* Donnerstag, 28. Oktober 2021 09:58
> *An:* pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> *Betreff:* Using --self-contained with external CSS results in CSS begin
> ignored
>
>
>
> When running the following document through pandoc
>
> ---
> title: Test
> author: Me
> css: https://cdn.jsdelivr.net/npm/water.css@2/out/water.css
> ---
> Intro
> ----------------------------------
> Bla die bla
> ```
> a = 1+2
> ```
>
>
>
> using
>
>
>
> pandoc doc.md -s --self-contained -o doc.html
>
>
>
> results in
>
>
>
> <!DOCTYPE html>
> <html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
> <head>
> ...
>   <style type="text/css; charset=utf-8">
>
>
>
> The charset in the type field of the style tag results in firefox and
> chromium ignoring the CSS. It seems pandoc takes over the entire
> `Content-Type: text/css; charset=utf-8` that is gets back when downloading
> the CSS.
>
>
>
> Am I right in thinking this is a bug?
>
>
>
> Thanks. Best,
>
>
>
> Jan
>
>
>
>
>
>
>
> Below the pandoc version I am using. This is on ubuntu 20.04.
>
>
>
> $ pandoc --version
> pandoc 2.5
> Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.7.7
> Default user data directory: /home/dlan/.pandoc
> Copyright (C) 2006-2018 John MacFarlane
> Web:  http://pandoc.org
> This is free software; see the source for copying conditions.
> There is no warranty, not even for merchantability or fitness
> for a particular purpose.
>
>
>
>
>
>
>
> --
> 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/2cbe8dd3-f692-4950-92e7-1ce2fa6d8fe9n%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/2cbe8dd3-f692-4950-92e7-1ce2fa6d8fe9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/p1a2Qutlog4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/dad8889efd374cd7a8d607a8609e6a87%40unibe.ch
> <https://groups.google.com/d/msgid/pandoc-discuss/dad8889efd374cd7a8d607a8609e6a87%40unibe.ch?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAD5Y919ZpM42gp4QOr-Ris8pw50LY1Zh5ciopi0VYSUCiRsgfQ%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 8025 bytes --]

      parent reply	other threads:[~2021-10-28  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-28  7:57 Jan van der Laan
     [not found] ` <2cbe8dd3-f692-4950-92e7-1ce2fa6d8fe9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-10-28  9:12   ` AW: " denis.maier-NSENcxR/0n0
     [not found]     ` <dad8889efd374cd7a8d607a8609e6a87-NSENcxR/0n0@public.gmane.org>
2021-10-28  9:26       ` Jan van der Laan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAD5Y919ZpM42gp4QOr-Ris8pw50LY1Zh5ciopi0VYSUCiRsgfQ@mail.gmail.com \
    --to=djvanderlaan-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).