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-/JYPxA39Uh5TLH3MbocFFw@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.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/dad8889efd374cd7a8d607a8609e6a87%40unibe.ch.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAD5Y919ZpM42gp4QOr-Ris8pw50LY1Zh5ciopi0VYSUCiRsgfQ%40mail.gmail.com.