code: def blockcode(self, text, lang):
          
          if lang and self._config.get('highlight_syntax', 'True'):
              try:
                  lexer = pygments.lexers.get_lexer_by_name(lang, stripall=True)
              except pygments.lexers.ClassNotFound:
                  lexer = None
  
              if lexer:
                  formatter = pygments.formatters.HtmlFormatter()  # pylint: disable=no-member
                  return pygments.highlight(text, lexer, formatter)
  
          return '\n<div class="highlight"><pre>{}</pre></div>\n'.format(
              flask.escape(text.strip()))
docs: Pass a code fence through pygments