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(), }))
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(), }))
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(), }, ) )
def render(self, text): return sph_markdown(text)