              ret = self.pattern.sub(repl, "\n".join(lines))
              return ret.split("\n")
  
      def md_filter_add_syntax_highlight(md):
          md.preprocessors.add('highlight', CodeBlockPreprocessor(), "_begin")
          return True
  else:
      def md_filter_add_syntax_highlight(md):
          return False
  
 
</s> remove # Markdown is optional (version 2.6+ required)
 </s> add # Markdown is optional (version 3.0+ required) </s> remove markdown==2.6.11
 </s> add markdown==3.1.1
pygments==2.4.2
        md.preprocessors.register(CodeBlockPreprocessor(), 'highlight', 40)
              ret = self.pattern.sub(repl, "\n".join(lines))
              return ret.split("\n")
  
      def md_filter_add_syntax_highlight(md):
        md.preprocessors.register(CodeBlockPreprocessor(), 'highlight', 40)
          return True
  else:
      def md_filter_add_syntax_highlight(md):
          return False
  
keep keep keep keep replace keep keep keep keep keep
 Update markdown preprocessor registration (#6722) 
rest_framework/compat.py