Skip to content

Commit a32ca1a

Browse files
committed
Remove duplicate <p> tags
* render_markdown returns its content in a <p> tag, so don't need to wrap again.
1 parent 1be9709 commit a32ca1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rest_framework/templates/rest_framework/docs/document.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="col-md-6 intro-title">
55
<h1>{{ document.title }}</h1>
66
{% if document.description %}
7-
<p>{% render_markdown document.description %}</p>
7+
{% render_markdown document.description %}
88
{% endif %}
99
</div>
1010
<div class="col-md-6 intro-code">

rest_framework/templates/rest_framework/docs/link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3 id="{{ section_key }}-{{ link_key|slugify }}" class="coredocs-link-title">{{
2929
<code>{{ link.url }}</code>
3030
</div>
3131

32-
<p>{% render_markdown link.description %}</p>
32+
{% render_markdown link.description %}
3333

3434
{% if link.fields|with_location:'path' %}
3535
<h4>Path Parameters</h4>

0 commit comments

Comments
 (0)