Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def format_creole(code):
"""Format creole syntax."""
from creoleparser import creole2html
rv = creole2html(code)
if isinstance(rv, str):
rv = rv.decode('utf-8')
return u'<div class="wikitext">%s</div>' % rv