diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c633ea..73db6b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ To see every change with descriptions aimed at developers, see As a continuously updated web app, Coauthor uses dates instead of version numbers. +## 2024-08-12 + +* Fix embedding of historical images (internal files) + ## 2024-07-10 * Security fix for pdfjs, fixing [vulnerability to malicious PDF](https://github.com/advisories/GHSA-wgrm-67xf-hhpq) diff --git a/lib/formats.coffee b/lib/formats.coffee index 2b624c0..6f049e4 100644 --- a/lib/formats.coffee +++ b/lib/formats.coffee @@ -782,8 +782,9 @@ postprocessCoauthorLinks = (text, msgId) -> return match unless fileMsg? {attrs, prefix} = imageTitleAndWarning fileMsg, msgId fileId = fileMsg.file - else + else # if isInternalFile fileId = url2internalFile url + attrs = prefix = '' file = findFile fileId return match unless file? prefix +