Files @ 1759a07630a8
Branch filter:

Location: symposion_app/pinaxcon/hooks.py

Nick Seidenman (N6)
A few mods to be able to use the runserver site for debugging. We'll back these out once the real
(via apache) site is up and running.
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)