Skip to content

Instantly share code, notes, and snippets.

View seignovert's full-sized avatar
🪐

Benoît Seignovert seignovert

🪐
View GitHub Profile
@paultopia
paultopia / makeslide.py
Last active May 3, 2017 20:41 — forked from aaronwolen/slides.md
Pandoc template to generate reveal.js slideshows. (corrected from original to be compatible with 3.2.0 release of reveal.js); also added a quick python script to generate with less command-line ugliness.
import argparse
# this first bit is to enable multiline help text. apparently this is a known problem with argparse.
# Solution jacked from http://stackoverflow.com/questions/3853722/python-argparse-how-to-insert-newline-in-the-help-text
import textwrap as _textwrap
class MultilineFormatter(argparse.HelpFormatter):
def _fill_text(self, text, width, indent):
text = self._whitespace_matcher.sub(' ', text).strip()
paragraphs = text.split('|n ')