Beispiel #1
0
    def render(self):
        if pages_settings.PAGE_DEFAULT_CONTENT_TYPE == 'md':
            from fancy.utils import Markdown
            return Markdown.convert(self.content)

        return self.content
Beispiel #2
0
    def get_content(self):
        if settings.BLOG_CONTENT_MARKDOWN:
            from fancy.utils import Markdown
            return Markdown.convert(self.content)

        return self.content