From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26022 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "arnold...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: External syntax highlghter CSS Date: Sat, 29 Aug 2020 21:21:19 -0700 (PDT) Message-ID: <5ecceacc-2a83-4783-8014-435d0c2872d9n@googlegroups.com> References: <472847d1-1058-4f1f-a13e-b1464c6f6065n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_738_1169516059.1598761279937" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39644"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDFMZSEYFUIMDUVM7ICRUBFKFJOTU-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 30 06:21:25 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f63.google.com ([209.85.161.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kCEqL-000ACU-22 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 30 Aug 2020 06:21:25 +0200 Original-Received: by mail-oo1-f63.google.com with SMTP id h9sf2284761ooq.2 for ; Sat, 29 Aug 2020 21:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=XBv72R0SixkOwDv+EHk245O4Sm7OFKc7RLYyz3xlnXQ=; b=aNtfLuK9OBMhsa8s8kt3PkDTPg+DacbjBjUBOev0isFfO9IvjUhPnOEkSIpvXdy2Ya e/xza5BBTZex3WbWkEXpqf6EORbAodYEbhFjGqLofTiTkTSAhTu/vJgLxIWQgY3rPIRt HrP08rAnAkrqIK9hc9s3TSRCgkZUSTNZJvnVs9S82RJsPe+bPIWl0NLsr8849NPby7Vp xv4hgfrAorWq0c9u2kpQw99EAp5Lcym5tgmFKIlhsgQ2kEuMa26lHZwaOcvcx2NcsrQa nDYOVUqa+14IwKQtPLNC6916fUHm06hKq3T5UW//FHKVUVWYA/Zimd/gLelW4E9nUQqQ ydbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=XBv72R0SixkOwDv+EHk245O4Sm7OFKc7RLYyz3xlnXQ=; b=Y9Y04WL6ja4BUQ87cZnGgOkkWYl0p1sT2EBuDW5CtcyuxS96O8I6b0EIywJmN84agb aP1FvSm4rmv134uyCbo9TcGCsnr7OU0KuFjVbGYAAevqEamegczEIthAHXHxflDxTvxB unxYUQp8NQzvkpgHfF/Wpqtok7bFxItir9zyGzAxMm/3fCcOLy5rhxw0bPO6c7UyThHB 3BnQU+OEflljj5sKkxM3tbdX+9tejbbUo+xDKbfvfOaFukb8a5Zh0fmF+CMv8vvn+4TG fp3aE6WEH6L/iYzt8bHF5ectbmhdt/IVv4JS3JuHCMwhi7DTSgepl8xrK+Rp4cfV5bBC cQGA== 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:in-reply-to :references: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=XBv72R0SixkOwDv+EHk245O4Sm7OFKc7RLYyz3xlnXQ=; b=omB9A80xm9P/tRGR8K8bpJcUyrDiBFb7SlOExlIXR0XS8qdIBlv0+XWHi+oFiwF/OV f2ElxhdoHUdpFpVkhGCc9tNfMQ58CAELXRDZ6+ofvBMipi42Pf/PBN1CvuUjN1mt//Jl RKm8Uk9xOQmEI5Bibix7sgnReOJ/17DhL6DAjQNLYKcls4FITLP12othpv8NQUn0gjgI Zeion7iaBfkwwjpdPWkE4ljoxFWEFJK4OpPST7jdgQfpdz3bUhPhb5f3ZNc/MMZ87kYc G7Zq/Eub4SkGmTWBqoln8dr4zWgO75V9qGZK9Ha2ZW807EAKxHgn+TRn6/jNAnKx9z44 Gk7A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531gr+ZMQ4PbGZunqoaNlcu5oHlX5qNAXz7swzv23vKyOmOdoSdy MsIBSRr6zu694qN7fAJPnLc= X-Google-Smtp-Source: ABdhPJy7+8C5yJMup5sS39LCXKkHW9HHxKaeFpm7qCfsC2PiHe09aNpAjMvpNZBlKQom2y/+hG8JDA== X-Received: by 2002:a4a:af0c:: with SMTP id w12mr4043486oon.68.1598761284048; Sat, 29 Aug 2020 21:21:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:31d1:: with SMTP id x200ls403795oix.7.gmail; Sat, 29 Aug 2020 21:21:21 -0700 (PDT) X-Received: by 2002:aca:44c3:: with SMTP id r186mr570575oia.53.1598761281132; Sat, 29 Aug 2020 21:21:21 -0700 (PDT) In-Reply-To: X-Original-Sender: arnold.maxim-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.io gmane.text.pandoc:26022 Archived-At: ------=_Part_738_1169516059.1598761279937 Content-Type: multipart/alternative; boundary="----=_Part_739_667375065.1598761279937" ------=_Part_739_667375065.1598761279937 Content-Type: text/plain; charset="UTF-8" I already use --highlight-style, but unfortunately still need to do some CSS tweaks to improve the EPUB -> MOBI conversion result. Still, are there any reasons why syntax highlighter CSS is embedded into html markup for EPUB files? Isn't it simpler to link it instead of embedding into each chapter? Does it affect how highlighting styles are applied due to some non-obvious CSS precedence issues on some devices? Is it safe to append it at the end of epub.css, or it is better to prepend it to keep the existing order? On Sunday, August 30, 2020 at 8:21:05 AM UTC+7 John MacFarlane wrote: > > You can do that, of course, but if you want to customize, > a more robust solution is to use --highlight-style with a > JSON .theme file -- see manual under --highlight-style. > > Unlike fiddling with CSS, this will work for every output > format that supports highlighting. > > > > Hey folks! > > > > Can someone elaborate on why syntax highlighter CSS is embedded into > html > > markup for EPUB files (as opposed to the default epub.css which is > linked)? > > > > I want to customize the syntax highlighter CSS a bit (not just colors). > > What are the downsides of specifying -V highlighting-css="" and > appending > > the customized syntax CSS to default epub.css instead? > > -- 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/5ecceacc-2a83-4783-8014-435d0c2872d9n%40googlegroups.com. ------=_Part_739_667375065.1598761279937 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I already use --highlight-style, but unfortunately still need to do so= me CSS tweaks to improve the EPUB -> MOBI conversion result.
<= br>
Still, are there any reasons why syntax highlighter CSS is em= bedded into html markup for EPUB files? Isn't it simpler to link it instead= of embedding into each chapter? Does it affect how highlighting styles are= applied due to some non-obvious CSS precedence issues on some devices? Is = it safe to append it at the end of epub.css, or it is better to prepend it = to keep the existing order?

=
On Sunday, August 30, 2020 at 8:21:0= 5 AM UTC+7 John MacFarlane wrote:

You can do that, of course, but if you want to customize,
a more robust solution is to use --highlight-style with a
JSON .theme file -- see manual under --highlight-style.

Unlike fiddling with CSS, this will work for every output
format that supports highlighting.


> Hey folks!
>
> Can someone elaborate on why syntax highlighter CSS is embedded in= to html=20
> markup for EPUB files (as opposed to the default epub.css which is= linked)?
>
> I want to customize the syntax highlighter CSS a bit (not just col= ors).=20
> What are the downsides of specifying -V highlighting-css=3D"" and = appending=20
> the customized syntax CSS to default epub.css instead?

--
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/5ecceacc-2a83-4783-8014-435d0c2872d9n%40googlegroups.= com.
------=_Part_739_667375065.1598761279937-- ------=_Part_738_1169516059.1598761279937--