Files @ 808a70eb093c
Branch filter:

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

Christopher Neugebauer
Revert "Hide Rego"

This reverts commit 70498db51bab734952b3c4b8733e664cf370051c.

Revert "Comment out ticket sales message"

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