Files @ 27140af7f65b
Branch filter:

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

Christopher Neugebauer
Merge pull request #72 from northbaypython/josh/design

tighten up mentorship copy, also change html to markdown
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)