Files @ 2fbc85db8e1b
Branch filter:

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

Christopher Neugebauer
Increases margin on tight-headings so that there isn’t interaction between two adjacent H1/H2 blocks
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)