File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed 
templates/rest_framework_docs Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11{% extends "rest_framework_docs/docs.html" %}
2+ {% load drfdocs_filters %}
23
34{% block apps_menu %}
45{% regroup endpoints by name_parent as endpoints_grouped %}
@@ -56,7 +57,7 @@ <h4 class="panel-title title">
5657        < div  id ="{{ endpoint.path|slugify }} " class ="panel-collapse collapse " role ="tabpanel "> 
5758          < div  class ="panel-body "> 
5859            {% if endpoint.docstring %}
59-             < p  class ="lead "> {{ endpoint.docstring }}</ p > 
60+             < p  class ="lead "> {{ endpoint.docstring|markdown  }}</ p > 
6061            {% endif %}
6162
6263            {% if endpoint.errors %}
Original file line number Diff line number Diff line change 1+ from  django  import  template 
2+ from  django .template .defaultfilters  import  stringfilter 
3+ from  rest_framework .utils .formatting  import  markup_description 
4+ 
5+ register  =  template .Library ()
6+ 
7+ 
8+ @register .filter (name = 'markdown' ) 
9+ @stringfilter  
10+ def  markdown (value ):
11+     return  markup_description (value )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments