  if 'patch' not in View.http_method_names:
      View.http_method_names = View.http_method_names + ['patch']
  
  
  # Markdown is optional (version 2.6+ required)
  try:
      import markdown
  
      HEADERID_EXT_PATH = 'markdown.extensions.toc'
      LEVEL_PARAM = 'baselevel'
 
</s> remove         md.preprocessors.add('highlight', CodeBlockPreprocessor(), "_begin")
 </s> add         md.preprocessors.register(CodeBlockPreprocessor(), 'highlight', 40) </s> remove markdown==2.6.11
 </s> add markdown==3.1.1
pygments==2.4.2
# Markdown is optional (version 3.0+ required)
  if 'patch' not in View.http_method_names:
      View.http_method_names = View.http_method_names + ['patch']
  
  
# Markdown is optional (version 3.0+ required)
  try:
      import markdown
  
      HEADERID_EXT_PATH = 'markdown.extensions.toc'
      LEVEL_PARAM = 'baselevel'
keep keep keep keep replace keep keep keep keep keep
 Update markdown preprocessor registration (#6722) 
rest_framework/compat.py