Skip to content

Commit

Permalink
fix inline image export problem
Browse files Browse the repository at this point in the history
  • Loading branch information
goktug97 committed Jun 2, 2020
1 parent c69d0f0 commit b06828e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions org-roam-server.el
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ DESCRIPTION is the shown attribute to the user."
(let ((desc (or description link)))
(pcase format
(`html
(let ((html-link (concat (file-name-sans-extension link) ".html")))
(if org-roam-server-authenticate
(format "<a href=%s?token=%s>%s</a>" html-link org-roam-server-token desc)
(format "<a href=%s>%s</a>" html-link desc))))
(if (org-roam--org-roam-file-p link)
(let ((html-link (concat (file-name-sans-extension link) ".html")))
(if org-roam-server-authenticate
(format "<a href=%s?token=%s>%s</a>" html-link org-roam-server-token desc)
(format "<a href=%s>%s</a>" html-link desc)))))
(_ link))))

;;;###autoload
Expand Down

0 comments on commit b06828e

Please sign in to comment.