Files @ d3a8b39a7b01
Branch filter:

Location: symposion_app/pinaxcon/hooks.py

Christopher Neugebauer
Adds 2em to the bottom of the illustration div in compact panels (#26)
import markdown

import pinax.boxes.hooks
import pinax.pages.hooks


def markup_renderer(content):
    return markdown.markdown(content)


class PinaxBoxesHookSet(pinax.boxes.hooks.DefaultHookSet):

    def parse_content(self, content):
        return markup_renderer(content)


class PinaxPagesHookSet(pinax.pages.hooks.DefaultHookSet):

    def parse_content(self, content):
        return markup_renderer(content)