Thanks!


Yeah, I suppose we'll have to strike a balance in accommodating requests for layout tweaks, just like we do for the LaTeX template. Although additional CSS, which would potentially override the default one, can easily be added, e.g. with:

---
header-includes: |
  <style>
  td {
    border: 1px solid grey;
  }
  </style>
---



On Sunday, August 23, 2020 at 1:54:11 PM UTC+2 Albert Krewinkel wrote:
Looks great, IMHO! The produced layout is beautiful, and
supporting more variables is nice, too.

The only concern I have is that this could open pandora's box when
is comes to requests for CSS tweaks. But this seems like a minor
problem.


mb21 writes:

> We're looking for feedback on a pull request I made: it adds some minimal
> CSS to pandoc's default HTML template.
>
> Two things that inspired this:
>
> - questions like this one on StackOverflow:
> https://stackoverflow.com/questions/63293929/pandoc-change-font-family-to-sans-while-converting-from-markdown-to-html
> - I've recently updated and streamlined the CSS I use to generate simple
> HTML files (or publish to my blog), and was surprised how minimal it can
> be, while still looking pretty good (IMHO). The idea is to rely on browser
> defaults as much as possible (which are fairly consistent nowadays), so you
> don't have to override/normalize a lot.
>
> The new CSS is added by default when using the `--standalone` option,
> unless you also use the `--css` option or convert to slideshows. Inclusion
> can be disabled e.g. with `pandoc -M document-css=false`. Or customized
> (like all templates and template partials) by adding your own file to
> ~/.pandoc/templates/styles.html.
>
> There are a few variables like `mainfont`, `fontsize` etc. that you can
> set, similar to what we already have in the LaTeX template. Have a look at
> the proposed changes to the MANUAL (and to styles.html):
>
> https://github.com/jgm/pandoc/pull/6601/files


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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/870bb19a-a503-4041-a1b3-1f32df467020n%40googlegroups.com.