Files @ 6ee11694e2ce
Branch filter:

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

Christopher Neugebauer
Revert "Update monkey_patch.py"

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