In the process of exporting Org files to html, I would like an org-protocol link in Org mode to export to html using the html export backend.
In my Org file, my org-protocol link is styled like this:
[[org-protocol://open-file?file=/Users/user/Download/test.org][Link to test file]]
org-protocol://open-file
is a custom protocol as defined in this answer.
This should export to html like this:
<a href="org-protocol://open-file?file=/Users/user/Download/test.org">Link to test file</a>
When I test conversion to html using org-html-convert-region-to-html
, I get the error Unable to resolve link: "org-protocol://open-file?file=/Users/user/Download/test.org"
.
System information: Emacs 27.2, Org mode 9.4.4, MacOS 12.2.1.
How can I export my org-protocol
link to html?
"No match for fuzzy expression: org-protocol://open..."
.org-protocol
by putting the example HTML link in an HTML source block, which exports correctly and functions as expected. I guess I forgot to mention thatorg-protocol://open-file
is a custom protocol, that I've defined using this answer. My initial asssumption was that gettingorg-protocol
links to work properly in Org was a separate problem from exporting them to HTML, but it could be related.