Exemplo n.º 1
0
 def render(self):
     from sphene.sphwiki import wikimacros
     return mark_safe(sph_markdown(self.body,
                                   extra_macros={'attachmentlist': wikimacros.AttachmentListMacro(snip=self),
                                                 'attachment': wikimacros.AttachmentMacro(snip=self),
                                                 'img': wikimacros.ImageMacro(),
                                                 'redirect': wikimacros.RedirectMacro(),
                                                 }))
Exemplo n.º 2
0
 def render(self):
     from sphene.sphwiki import wikimacros
     return mark_safe(
         sph_markdown(self.body,
                      extra_macros={
                          'attachmentlist':
                          wikimacros.AttachmentListMacro(snip=self, ),
                          'attachment':
                          wikimacros.AttachmentMacro(snip=self, ),
                          'img':
                          wikimacros.ImageMacro(),
                          'redirect':
                          wikimacros.RedirectMacro(),
                      }))
Exemplo n.º 3
0
    def render(self):
        from sphene.sphwiki import wikimacros

        return mark_safe(
            sph_markdown(
                self.body,
                extra_macros={
                    "attachmentlist": wikimacros.AttachmentListMacro(snip=self),
                    "attachment": wikimacros.AttachmentMacro(snip=self),
                    "img": wikimacros.ImageMacro(),
                    "redirect": wikimacros.RedirectMacro(),
                },
            )
        )
Exemplo n.º 4
0
 def render(self, text):
     return sph_markdown(text)
Exemplo n.º 5
0
 def render(self, text):
     return sph_markdown(text)