Skip to main content


Items tagged with: pandoc

Any Markdown / Pandoc mavens know how to tweak the HTML DOM generated for HTML pages?

I'm looking at one for an article which doesn't seem to generate


article> or elements, though if it did either, would make some layout / CSS issues a lot easier to deal with.

Problem now is that when I set additional margins within <blockquote> segements, they don't really or consistently differ from the adjacent <br> elements. I have a sad.

The CSS I'm using, in part (and yes, I can share the full stylesheet, though this seems to be the operative code):
body {
  margin: 1rem auto;
  max-width: 90rem;
  padding: 0 4rem 0.5rem;
  width: auto;
  font-size: 1rem;
  line-height: 1.4;

blockquote {
    margin-left: 8em;
    margin-right: 6em;

article, p, ol, ul, li, div {
    width: auto;
    max-width: 45rem;
    margin: 0 auto;
    line-height: 1.4;

p {
    margin: 1em auto;

What happens is that the blockquote margins are acting against the full p... show more

Just found out about Academic #Markdown, which works with #Pandoc as detailed here: - works with #Pelican too! This is the route I'll be testing now, and keep the given infrastructure.


If you're starting to appreciate Markdown: Pandoc

The formatting conventions on Diaspora and other Federation/Fediverse platforms is Markdown, what's called a lightweight markup language. There are several others, including AsciiDoc, which heavily inspired the markup used at Google+.

There is a software utility, Pandoc, available as a command-line tool on Linux, Mac, and (through various command-line tools such as Cygwin) on Windows. It is a document-transformation Swiss army life, capable of converting from and to a vast number of formats, including:
  • From: (several dialects of) Markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0, Vimwiki markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags, Microsoft Word docx, LibreOffice ODT, EPUB, or Haddock markup
  • To: not only each of these, but various HTML formats, word
... show more

Ah zut alors, le gabarit par défaut de #pandoc n'est pas tout à fait du #HTML 5 valide :

Warning: The type attribute for the style element is not needed and should be omitted.

/title>↩ <style type="text/css">code{w

En fait, quand on utilise #pandoc pour faire un site Web statique, même pas besoin de définir son propre gabarit. Le gabarit par défaut + changer quelques variables sur la ligne de commande suffit souvent. #LeTrucDuJour