code: def codeblock(
              self,
              text,
              lang=""):
          
          reRemoveNewline = re.compile(r'^(\s*\n)?([^\n].*?)\s*$', re.S)
          m = reRemoveNewline.match(text)
          text = m.group(2)
  
          return "\n```%(lang)s\n%(text)s\n```\n" % locals()
docs: *convert plain-text to MMD fenced codeblock*
  
          **Key Arguments:**
              - ``text`` -- the text to convert to MMD fenced codeblock
              - ``lang`` -- the code language for syntax highlighting. Default *''*
  
          **Return:**
              - ``text`` -- the MMD fenced codeblock
  
          **Usage:**
  
              To convert a text block to comment text:
  
              .. code-block:: python
  
                  text = md.codeblock("def main()", "python")
                  print text
  
                  # OUTPUT:
                  # ```python
                  # def main()
                  # ```