linkify document descriptions

This commit is contained in:
Tomáš Mládek 2020-07-30 00:16:22 +02:00
parent da8f7b1633
commit 7337a31192
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class Document(SoftDeletableModel):
@property
def html_description(self):
return markdown2.markdown(self.description)
return bleach.linkify(markdown2.markdown(self.description))
@property
def plain_description(self):

View file

@ -193,7 +193,7 @@ ul > li:before {
content: "➜ ";
}
.doc-link a {
.document a {
text-decoration: underline;
}