code: def html_format(value):
      
      if not value:
          return ''
      elif MARKUP_LANGUAGE == 'markdown':
          return markdown(value)
      elif MARKUP_LANGUAGE == 'textile':
          return textile(value)
      elif MARKUP_LANGUAGE == 'restructuredtext':
          return restructuredtext(value)
      elif '</p>' not in value:
          return linebreaks(value)
      return value
docs: Returns the value formatted in HTML,
      depends on MARKUP_LANGUAGE setting.