Skip to content

Commit 5d2ac56

Browse files
authored
feat: Now that charters are Markdown, render them as such on charter page (ietf-tools#6628)
1 parent 1b4cb6b commit 5d2ac56

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def document_main(request, name, rev=None, document_html=False):
629629

630630
if doc.type_id == "charter":
631631
content = doc.text_or_error() # pyflakes:ignore
632-
content = markup_txt.markup(content)
632+
content = markdown.markdown(content)
633633

634634
ballot_summary = None
635635
if doc.get_state_slug() in ("intrev", "iesgrev"):

ietf/templates/doc/document_charter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
{{ doc.canonical_name }}-{{ doc.rev }}
231231
</div>
232232
<div class="card-body">
233-
<pre>{{ content|maybewordwrap|urlize_ietf_docs|linkify }}</pre>
233+
{{ content }}
234234
</div>
235235
</div>
236236
{% endif %}

0 commit comments

Comments
 (0)