From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32788 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mahela Munasinghe Newsgroups: gmane.text.pandoc Subject: How to prevent CSS from being embedded? Date: Sat, 10 Jun 2023 22:01:05 +0530 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b1689405fdc90365" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9624"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBD56PTEWXQNBBVOKSKSAMGQEQROQULQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jun 10 18:31:21 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f60.google.com ([209.85.160.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q81Um-0002KH-8r for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 10 Jun 2023 18:31:20 +0200 Original-Received: by mail-oa1-f60.google.com with SMTP id 586e51a60fabf-1a6731fdb28sf11600fac.3 for ; Sat, 10 Jun 2023 09:31:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686414679; cv=pass; d=google.com; s=arc-20160816; b=0xOI3rHYbEY8/5m9yM0PsucXc7iZQ41zRrux2hrg7kdaN8F7fhF5Zo2temRZbrlogL bxOagGtrc+7+nIfkmG8VncbBkBe2Kf/IBcUq08k322QRmgu8cLzfczUAZ+oXL0KfW8uS i/lBRBl+PTNjdQVVwBYGGG/1B26VE5TTRAstLYW/WEKDyGyGLMyImRh4ouJKbjQwNvrg wIm2aDS4jYWZavkIBREa6dkmOhqoZ0MUy5xeL4GSZdjXqQ3CausUjzm8iZdk0ilTrMUP N35Z344PjrFJ3MWcKNQqXGWrqwMfew7HCsL6OPZ5a5OZkQWS17c5wkxQBh1/XWlpYCqu 0a1w== 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:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=nJbG8YsELnoQ16Zu0VFOw0YSqGHBFTCr7Jc27gUZut4=; b=uSb0TgID/KjZhZXLS2qfq/qFeQmplVxvaoEaDfPE4GLCpETcGDimzfSEpHZ7PGcl7B iOpIGFe4ZLLMj4nxrbMQ2/XOXT8ttNaec2CHVGnUtLUgs8sBF8tPV5e6qM67BUs3WyL5 rC5B0T41CCmXiHNjbtypAYa0IdE8svE8vAShhD0t5uDEyRKB/A16+OF8yBJF1+SRUX3z Vu6orKSfyRPomZtANn6eyVZX+ItGVOl9bG3WNSkWSx0cVQRmFIf3Y2lbfx749oLzHT4Z zhck8y6rnRqlwR4YJnUIwqtBeJ32A2L3Y9jhgVCnJgSfbpzPphgw40K+wwJVSeLvUrag J6fg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=SZSVJLZ6; spf=pass (google.com: domain of mahela007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f33 as permitted sender) smtp.mailfrom=mahela007-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=20221208; t=1686414679; x=1689006679; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=nJbG8YsELnoQ16Zu0VFOw0YSqGHBFTCr7Jc27gUZut4=; b=ZhPsEi5NQCjy5Sk3Jtki0BBc6kCE3Qv/U+zwttWu209t0lzFbEF8bZhZ++C+a14qG2 qn49kD8C2KKCUc1G0efjCO7Ok7MiGifUrCOJ/kuWspCiBsfoOxLP1ay/tiopIsJOfsLz /4YQ5cjF3pbkxeBHVA/5r0TIezlWN59YcztEXOcKDyfQMFMyqQIRPFMlnaWGqgg65gE3 S5KeJbqULV0z+pj/eUVGn/1W/sxe4BU6q7RshVg4IMdiRr12Olad65VtpJCOARj1dnq7 fmhFwoIXsTcJMD1ISqdnkxz+HQMsPR6xc+KpKLqXuOt4KTyDFcmdkSQ8HReKjJr0KS+2 GyDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686414679; x=1689006679; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nJbG8YsELnoQ16Zu0VFOw0YSqGHBFTCr7Jc27gUZut4=; b=WIJ2OBjXWukpD9O9t51nZD38oeM76VkOC5XUKrJI2WP8VNnolFdudi9wQTAnAVS6OV eohC6jFV0lkS75NDRPPXzhiH7L8i+Q1iE0ytj4mRNCItDJfDYn4N1EBieUFljWs9aq1c AJcNXB8NcWnQ9aX+QpQuHIqF+gD7kud+/+er4YH4wF/NJqJDrzsAXZawbAPZ7chDvRCD a5LsPlBhUbNX/F7MU/BOztWDywAZX5P9abONNpBBy63BwpDYRI2yjBM9B6ICvTdyWEzg gshRE0Ljw+xYn3WsPUEKcgvejYzTeajip+fyVNGvRTwY28LqWKRSHv1o42JsVHrDvkjB T7Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686414679; x=1689006679; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=nJbG8YsELnoQ16Zu0VFOw0YSqGHBFTCr7Jc27gUZut4=; b=OZnyeOmuGMb3PHSnalWh5+VYQZ6q17R4V/Il56yNs9dNpa8obQ5l7E0fR/ZndM2eQC IncByX0i4KksytkTvKWEVWKhBdy4ant68T5/Pbiv7W9VL8vspTVhLQ9zMVwkXT9IZDks mmtwZYTapxDYPv1tfBT9QH/mfdCHXyQfCJmPbwxOkysbJl9HqNWmnUv09HDE4kO1cIQP Su1kcyBuropsOUhO+KZooAagPvyJqmNOqTvdbXjRbfRM49r001vvjbESUlID96jCFcjB +QvZ7/DK03NCQTbX6v26+X7h9tA7E0C8WazhBX3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwoztSHELQQevKZFNRnzsFGQcdITYiLvAxIlBx2ITk6EAHJ9CNU SUOeW1x96dgJadfXcKe0RH4= X-Google-Smtp-Source: ACHHUZ6DUjsS9eOiL1tD3r32+ZRGObRnuiTtKEVD77T6gk9FnMRdCP9gHzeD4JAM3/gRUnePd/JBvg== X-Received: by 2002:a05:6870:3845:b0:19f:add7:2cd4 with SMTP id z5-20020a056870384500b0019fadd72cd4mr3368684oal.32.1686414679145; Sat, 10 Jun 2023 09:31:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:153:b0:1a0:bbd6:a9c5 with SMTP id z19-20020a056871015300b001a0bbd6a9c5ls126614oab.0.-pod-prod-06-us; Sat, 10 Jun 2023 09:31:16 -0700 (PDT) X-Received: by 2002:a05:6870:a892:b0:1a3:63ac:1e04 with SMTP id eb18-20020a056870a89200b001a363ac1e04mr2540681oab.7.1686414676597; Sat, 10 Jun 2023 09:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686414676; cv=none; d=google.com; s=arc-20160816; b=LE+OG5+Cvpxk9cB6Xg42qt6Qw8WX89p0Qe+UO6iR/tE8fZGhhc/1BSonEmzTNhpwGJ VoieCTcgcSPDmpLKGDE2KeMjITl4FabKGsD9d/VG4C60rM4aPYrk4kxLbYyBLjS1HDoM 6Zkw0H2MPeQCQKKQ0SBq/Zq3tk0Yw9X5YWwXAwt2Da13KQgYdAfZAFXaQ06832tzrSL3 aIdai12ws5rXK9fXbRPoTlIReZOINpVy7vMT65SftSw+I2a0KmuOsXTYUFc8wUIYwgaU pyqvTBEOpMpbeoZ//E7B2SzFbRik5O1SoWUBCo1tE2JMVcfWXLOi/ha9aQw7gY2dv2HT 6CyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=jONxEGzVhdbLSWsHpdSBb1HGBVy7F9hcvGgvXnBpCOs=; b=BeW+v0Y0uB8wJ/5z+2XvPNqi3h5tg5K4XOnuJ9lM0dooLMtQ8wg7clIqbeYVp0gnsu 0TX4V35d1wLlg4PK8zZQlnDzmvMwI5Pf3hZ5I4PjokAihjQJCJTAqPd120ACyXBzsb+e Wusa9KqIlPIC5VtGXRY5miW0kavU+DWn/OzsGt9sZuMGsUXHgKBj8g3PZ/05JdyAUISj JebpBW3fp7VYiy9Bj566appHtvwhulPnPZpj3Ertq8sU0YV6feMWvoQahxIW443HbxH4 lV2uofxQxBLq0heDFMCIggtgUTvf4o0uOOGpJnmEP9kFdOAgcVeTfmebOFwlo6gWsFYS PDRw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=SZSVJLZ6; spf=pass (google.com: domain of mahela007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f33 as permitted sender) smtp.mailfrom=mahela007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com. [2607:f8b0:4864:20::f33]) by gmr-mx.google.com with ESMTPS id q17-20020a056870809100b0019a132ba072si580450oab.1.2023.06.10.09.31.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Jun 2023 09:31:16 -0700 (PDT) Received-SPF: pass (google.com: domain of mahela007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f33 as permitted sender) client-ip=2607:f8b0:4864:20::f33; Original-Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-62ddb103e1dso3456976d6.2 for ; Sat, 10 Jun 2023 09:31:16 -0700 (PDT) X-Received: by 2002:a05:6214:2021:b0:625:aa49:ceb0 with SMTP id 1-20020a056214202100b00625aa49ceb0mr4867406qvf.57.1686414675764; Sat, 10 Jun 2023 09:31:15 -0700 (PDT) X-Original-Sender: mahela007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=SZSVJLZ6; spf=pass (google.com: domain of mahela007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f33 as permitted sender) smtp.mailfrom=mahela007-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:32788 Archived-At: --000000000000b1689405fdc90365 Content-Type: text/plain; charset="UTF-8" Hello. I am using pandoc to convert some markdown study notes to html. The final html is hosted on GitHub pages so that I can access it from anywhere. Becuase my notes contain images, I have to use the --embed-resources option with pandoc in order for the html to display correctly. The problem arises when I went to add CSS to style the notes. I have found many css sheets to style the html. ( https://markdowncss.github.io/) However, because of the --embed-sources pandoc encodes the CSS as base 64 and somehow the CSS in the rendered HTML does not render on any browsers. I know the raw CSS itself works because I manually added the CSS to the html and it formats the page properly. I feel that if I can prevent the CSS from being encoded (even when using the --embed- resources option) and preserve it as a link to an external css, my page should display properly. I have searched for possible solutions and some posts suggest using a data-external="1" flag to prevent a source from being embedded. See here: https://github.com/jgm/pandoc/issues/8362#issuecomment-1272612851 But that describes how to do it for mathjax, not css. Could someone show me an example of how to do the same thing for css? Thank you! -- 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/CAPfJ9TiL1sEvMaMOa_Z1UVW_u6%3DDz8xZOMaN_vqw36SP%2BA1EzQ%40mail.gmail.com. --000000000000b1689405fdc90365 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.
I am using pandoc to convert some= markdown study notes to html.
The final html is hos= ted on GitHub pages so that I can access it from anywhere.
Becuase my notes contain images, I have to use the=C2=A0
--embed-resources option with pandoc in order for the html to d= isplay correctly.

The pr= oblem arises when I went to add CSS to style the notes.
I have found many css sheets to style the html. (https://markdowncss.github.io/)

However, because of the --embed-sources pa= ndoc encodes the CSS as base 64 and somehow the CSS in the rendered HTML do= es not render on any browsers.
I know the raw CSS it= self works because I manually added the CSS to the html and it formats the = page properly.

I feel th= at if I can prevent the CSS from being encoded (even when using the --embed= - resources option) and preserve it as a link to an external css, my page s= hould display properly.=C2=A0
I have searched for po= ssible solutions and some posts suggest using a=C2=A0
data-external=3D"1" flag to prevent a source from being embedde= d.


But that describes how to do it = for mathjax, not css.=C2=A0
Could someone show me an= example of how to do the same thing for css?

Thank you!

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAPfJ9TiL1sEvMaMOa_Z1UVW_u6%3DDz8xZOM= aN_vqw36SP%2BA1EzQ%40mail.gmail.com.
--000000000000b1689405fdc90365--