symposion_app/pinaxcon/hooks.py
2015-10-16 12:53:02 -05:00

20 lines
417 B
Python

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)