Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@property
def inline_elements(self):
inline = super(CreoleDialect, self).inline_elements
inline.append(self.abbracronym)
inline.append(self.strikethrough)
inline.append(self.htmlentity)
return inline
@property
def block_elements(self):
blocks = super(CreoleDialect, self).block_elements
blocks.insert(0, self.codeblock)
return blocks
self.parser = creoleparser.core.Parser(CreoleDialect)
self.text2html = self.parser.render
@property
def inline_elements(self):
inline = super(CreoleDialect, self).inline_elements
inline.append(self.abbracronym)
inline.append(self.strikethrough)
inline.append(self.htmlentity)
return inline
@property
def block_elements(self):
blocks = super(CreoleDialect, self).block_elements
blocks.insert(0, self.codeblock)
return blocks
self.parser = creoleparser.core.Parser(CreoleDialect)
self.text2html = self.parser.render
def creole(text, **kw):
"""Returns the text rendered by the Creole markup.
"""
if Creole is None and settings.DEBUG:
raise template.TemplateSyntaxError("Error in creole filter: "
"The Creole library isn't installed, try easy_install Creoleparser.")
parser = CreoleParser(dialect=dialect)
return parser.render(text)
def creole(text, **kw):
"""Returns the text rendered by the Creole markup.
"""
if Creole is None and settings.DEBUG:
raise template.TemplateSyntaxError("Error in creole filter: "
"The Creole library isn't installed, try easy_install Creoleparser.")
parser = CreoleParser(dialect=dialect)
return parser.render(text)
def creole(text, **kw):
"""Returns the text rendered by the Creole markup.
"""
if Creole is None and settings.DEBUG:
raise template.TemplateSyntaxError("Error in creole filter: "
"The Creole library isn't installed, try easy_install Creoleparser.")
parser = CreoleParser(dialect=dialect)
return parser.render(text)