  from django.utils.html import escape, format_html, smart_urlquote
  from django.utils.safestring import SafeData, mark_safe
  
  from rest_framework.compat import (
      NoReverseMatch, markdown, pygments_highlight, reverse, template_render
  )
  from rest_framework.renderers import HTMLFormRenderer
  from rest_framework.utils.urls import replace_query_param
  
  register = template.Library()
 
</s> remove     return mark_safe(markdown.markdown(markdown_text))
 </s> add     return mark_safe(apply_markdown(markdown_text)) </s> remove     if not markdown:
 </s> add     if apply_markdown is None:
    NoReverseMatch, apply_markdown, pygments_highlight, reverse,
    template_render
  from django.utils.html import escape, format_html, smart_urlquote
  from django.utils.safestring import SafeData, mark_safe
  
  from rest_framework.compat import (
    NoReverseMatch, apply_markdown, pygments_highlight, reverse,
    template_render
  )
  from rest_framework.renderers import HTMLFormRenderer
  from rest_framework.utils.urls import replace_query_param
  
  register = template.Library()
keep keep keep keep replace keep keep keep keep keep
 Reuse 'apply_markdown' function in 'render_markdown' templatetag func (#5469)

* reused 'apply_markdown' function in 'render_markdown' templatetag function

* typo fixed 
rest_framework/templatetags/rest_framework.py