def process_string(self, string): string = wikisafe_markdown(string) parser = WikiParse() string = parser.parse(string) if len(string.split("</p>")) == 2 and string.split("</p>")[1] == "": string = string.replace("<p>","").replace("</p>","") return string
def wikimarkdown(value): return wikisafe_markdown(value)