feat: Now that charters are Markdown, render them as such on charter page (#6628)

This commit is contained in:
Lars Eggert 2023-11-10 10:26:02 +02:00 committed by GitHub
parent 1b4cb6b235
commit 5d2ac56858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -629,7 +629,7 @@ def document_main(request, name, rev=None, document_html=False):
if doc.type_id == "charter":
content = doc.text_or_error() # pyflakes:ignore
content = markup_txt.markup(content)
content = markdown.markdown(content)
ballot_summary = None
if doc.get_state_slug() in ("intrev", "iesgrev"):

View file

@ -230,7 +230,7 @@
{{ doc.canonical_name }}-{{ doc.rev }}
</div>
<div class="card-body">
<pre>{{ content|maybewordwrap|urlize_ietf_docs|linkify }}</pre>
{{ content }}
</div>
</div>
{% endif %}