Commit 7b2fc51d authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Document basename in links

parent 4b9711fd
......@@ -226,7 +226,8 @@ def document(s, website):
doc_id = int(
url = os.path.join(website.attachments_prefix, "IMG", website.doc_index[doc_id])
if doc_type == 'doc':
return f"[Document]({url})"
docname = os.path.basename(url)
return f"[{docname}]({url})"
return f"![]({url})"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment