docs: def create_attributes(self, cell, cell_type=None):
          """Turn the attribute dict into an attribute string
          for the code block.
          """
          if self.strip_outputs or not hasattr(cell, 'execution_count'):
              return 'python'
  
          attrs = cell.metadata.get('attributes')
          attr = PandocAttributes(attrs, 'dict')
  
          if 'python' in attr.classes:
              attr.classes.remove('python')
          if 'input' in attr.classes:
              attr.classes.remove('input')
  
          if cell_type == 'figure':
              attr.kvs.pop('caption', '')
              attr.classes.append('figure')
              attr.classes.append('output')
              return attr.to_html()
  
          elif cell_type == 'input':
              # ensure python goes first so that github highlights it
              attr.classes.insert(0, 'python')
              attr.classes.insert(1, 'input')
              if cell.execution_count:
                  attr.kvs['n'] = cell.execution_count
              return attr.to_markdown(format='{classes} {id} {kvs}')
  
          else:
              return attr.to_markdown()