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.