From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23487 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel Volpe Newsgroups: gmane.text.pandoc Subject: PDF doesn't render custom CSS with base64 encoded image Date: Mon, 30 Sep 2019 16:54:34 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1656_949633803.1569887674752" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153428"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDTPXHHV2IDBBO5LZLWAKGQE3PGFJBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 01 01:54:44 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iF5V5-000dkB-N7 for gtp-pandoc-discuss@m.gmane.org; Tue, 01 Oct 2019 01:54:43 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id c190sf8375542oig.9 for ; Mon, 30 Sep 2019 16:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=MKbt/xTdg/Zbj968op+S61zqG+/2RNeF1xOqaOXV+cc=; b=VrOW1nUjXcORdrAIV1qLm9OA90eDBzarqS/LjP8hURYCdBHQtwchlc7pQQMBLOmN1l 4EsQAX0M6ZyteuE0Gxz5v49VBrPXHKUvkfgB1yQL27iA9ch3DT3iLjiQa+Czd38F6tFS t3eo1hlLbFE8vwt65zYbd+PoX/MJ5GiI63GjPjvVIZ2delnHsRFcKCKKONGxXgHluIa7 Im2snmARZEEmAYqCKL8BlQU2+iOrLDRsGnKgCM+jgDKlE56tRHbc6cY0jSyRdwxXtPIQ /kuOyhjLOyP26BAQNGd7b14Wc+fpxEBnnoy+y/Hl9iZWG0I2rEhAuyHjUnc9aU4ux5aA HNPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=MKbt/xTdg/Zbj968op+S61zqG+/2RNeF1xOqaOXV+cc=; b=pHsqjXe3mSOGcjInQ70DInG13LPDS9vWrup2THHmmpM0o2G3nhfk9zrPm/sCbbN2vV DkFxfqNabN57roIDYoTdGKhGInu+jj654k2UdKp/T3zShaCEvpvodai1Qm6Q/uqQLDPJ 8EnfOyT03CyZdvZgYyZIa3fhv0EOqidMuFd4FGEAgujDFHg46ZvNiK/zfchsMBm6PlTB bcarqiJ28zmTfW45GHABjpx/Ei3DvAxq8lxHAnPr4YysIalykBecVDHbkWgtvkxy/iS1 F59FCbmp6Q2RfldknPZYzSBloPBt6g+3wSUxN2YY5Yvi5YqG4gRdvpHYzyvKWO84xbCG UqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=MKbt/xTdg/Zbj968op+S61zqG+/2RNeF1xOqaOXV+cc=; b=Y/PKN0ErVgD8xqxfYnU3E02cc6C0qtOBv5K7RyjlI1kiVx1CrhVu29gRMdYERolbuG s/jjI6wlkaawRIX9B+PutDyT1uC51MWdav6fvnEXMZjdvIPN6bVacpXHbm3XEZqRHZxt 8LqygPeyNAhoTrIoagzLNorVJqYr8IltLn2ekuNcYn4TcbBJDv0RDMuKIQt+s6QLABbA nHCOQL2KmBp7xEW9sjEx0TdZSN/uKekr3uEW9/O4xlPyn58kjoawRI8wm96ltbkpqgkh uWkwUIpGd5wv538kOTqrXg1kFrY+Y4iq26xZP+grxGGZJAQJ2q5K8mPRGvR1ku6TAKph PvEA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXz76q109L+1mQ5Ffw4mCVR6dIQXA+F+hqwafhsC8zLp6zV6/VG U1sxK0rlv1g2IU6LcikRu7E= X-Google-Smtp-Source: APXvYqzkgLAOJbUiLplNOv+Pn13uuQLEUp4kiAvIm380XrIO5IkqmZ+g32Ito7NFkAvRwRjFkZzchg== X-Received: by 2002:aca:4bc4:: with SMTP id y187mr1412091oia.118.1569887676581; Mon, 30 Sep 2019 16:54:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5585:: with SMTP id j127ls2805870oib.11.gmail; Mon, 30 Sep 2019 16:54:35 -0700 (PDT) X-Received: by 2002:aca:c3c9:: with SMTP id t192mr1545783oif.174.1569887675324; Mon, 30 Sep 2019 16:54:35 -0700 (PDT) X-Original-Sender: volpegabriel-Re5JQEeQqe8AvxtiuMwx3w@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.org gmane.text.pandoc:23487 Archived-At: ------=_Part_1656_949633803.1569887674752 Content-Type: multipart/alternative; boundary="----=_Part_1657_1224804839.1569887674753" ------=_Part_1657_1224804839.1569887674753 Content-Type: text/plain; charset="UTF-8" Hi, I have a custom css with a base64-encoded image, something like: .box-tip { background-color: #fff8e6; background-image: url('data:image/png;base64,iVBORw0KGgoAAAAN='); border: solid 1px #fad264; } It is rendered properly when I convert my markdown files to EPUB but not when I convert it to PDF. pandoc 2.7.3 Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.8.1 I'm on *Ubuntu 19.04* if that matters. Here's the full command I'm using for EPUB: pandoc -o book.epub title.txt chapter1.md chapterN.md --from markdown+implicit_figures --toc --highlight-style pygments --epub-cover-image=img/cover.png --css css/ boxes.css --css css/book.css And here's the full command for PDF: pandoc -o book.pdf title.txt chapter1.md chapterN.md --from markdown+implicit_figures --toc --highlight-style pygments --css css/boxes.css --css css/book.css -- pdf-engine=pdflatex -V documentclass=book -V papersize=A4 -V subparagraph -V links-as-notes -V classoption=oneside -V classoption=openany Any ideas on whether this is a bug or it's just me doing something wrong? Thanks! -- 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/cac929e5-e772-4a83-9f4b-eeb89b86ec8e%40googlegroups.com. ------=_Part_1657_1224804839.1569887674753 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I have a custom css with a base64-e= ncoded image, something like:=C2=A0

.box-tip {
=C2=A0 =C2=A0 background
-color: #fff8= e6;
=C2= =A0 =C2=A0 background
-image: url<= span style=3D"color: #660;" class=3D"styled-by-prettify">('data:image/png;base64,= iVBORw0KGgoAAAAN=3D');
=C2=A0 =C2=A0 border
: solid 1px #fad264;=
}

It is rendered properly when I convert my ma= rkdown files to EPUB but not when I convert it to PDF.=C2=A0

=
pa= ndoc 2.7.3
Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.8.1

I'm on Ubu= ntu 19.04 if that matters. Here's the full command I'm using fo= r EPUB:

pandoc -o book.e= pub title.= txt chapte= r1.= md chapterN.md --from markdown+implicit_figures --toc --highlight-style = pygments -= -epub-cover-image=3Dimg/cover.png = --<= span style=3D"color: #000;" class=3D"styled-by-prettify">css css/boxes.css --css css/book.css
<= /span>

And here's the full comman= d for PDF:

pandoc -o book.p= df title.<= /span>txt chapter= 1.<= span style=3D"color: #000;" class=3D"styled-by-prettify">md chapterN= .md --from markdown+implicit_figures --toc --highlight-style p= ygments --= css css/boxes.css --css css/book.= css --pdf-engine=3Dpdflatex -V documentclass=3Dbook -V papersize=3DA4 -V subparagra= ph -V links-as-notes -V classoption=3Doneside -V classoption=3Dop= enany

Any ideas on whether this is a = bug or it's just me doing something wrong?

Thanks!

--
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/cac929e5-e772-4a83-9f4b-eeb89b86ec8e%40googlegroups.co= m.
------=_Part_1657_1224804839.1569887674753-- ------=_Part_1656_949633803.1569887674752--