I'd like to use org-wiki to keep a personal wiki. Org-wiki will also publish to html. In doing so it converts all org links of the form wiki:foo
to foo.html
. It does this using the function org-wiki--org-link
. I would like to use org-wiki html functions but with a different publishing backend -- specifically ox-pandoc. While this publishing function using pandoc works, it does not convert the wiki:file
links from org-wiki into file.html
links in html. This suggests that org-wiki--org-link
isn't working the way I would want it to. I have tried the following to fix this (I'm on org 9.0.6 & emacs 25.2.1).
(org-link-set-parameters
"wiki"
:export (lambda (path desc backend)
(cond
((eq backend 'html)
(format "<a href='%s.html'>%s</a>" path (or desc path)))))))
However this doesn't work. In the html output all links are of the form wiki:foo
rather than foo.html
.
Any ideas about how to fix this are appreciated.