Exemplo n.º 1
0
    def process_string(self, string):
        """
		Its not generally safe to use markdown on a whole blocktag because the block
		may contain html already and there's no telling how nice it will play.
		"""
        string = wikify_string(string)
        return string
Exemplo n.º 2
0
    def process_string(self, string):
        string = wikisafe_markdown(string)
        string = wikify_string(string)
        if len(string.split("</p>")) == 2 and string.split("</p>")[1] == "":
            string = string.replace("<p>", "").replace("</p>", "")

        return string
Exemplo n.º 3
0
	def process_string(self,string):
		"""
		Its not generally safe to use markdown on a whole blocktag because the block
		may contain html already and there's no telling how nice it will play.
		"""
		string = wikify_string(string)
		return string
Exemplo n.º 4
0
	def process_string(self, string):
		string = wikisafe_markdown(string)
		string = wikify_string(string)
		if len(string.split("</p>")) == 2 and string.split("</p>")[1] == "":
			string = string.replace("<p>","").replace("</p>","")

		return string
Exemplo n.º 5
0
def wikilink(value):
	return wikify_string(value)
Exemplo n.º 6
0
def wikilink(value):
    return wikify_string(value)