Files @ 25287119d58d
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/hooks.py

Christopher Neugebauer
Revert "REVERT WHEN TICKETS ON SALE"

This reverts commit d265c854cc1e71eed9ec212f5938d2686bff0ee4.
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)