Skip to content

Instantly share code, notes, and snippets.

View cgabard's full-sized avatar

Christophe Gabard cgabard

View GitHub Profile
@cgabard
cgabard / preprocessblock.py
Created October 2, 2014 09:38
preprocessblock.py
#! /usr/bin/env python
import markdown
class PreprocessBlockExtension(markdown.extensions.Extension):
"""This extension will change the default behaviour of python-markdown and allow to use
pre-processing extensions inside block"""
def __init__(self, configs={}):
markdown.extensions.Extension.__init__(self)