Khalid Rafi <[email protected]> writes: > How should I write relative links in Org mode so that it exports > properly in Markdown? For example, to generate [install Emacs on > Android](/en/install-emacs-on-android) in Markdown, what should I > write in Org? I tried [install Emacs on Android] > (/en/install-emacs-on-android), but it generates [install Emacs on > Android](file:///en/install-emacs-on-android) in Markdown.
Perhaps I'm missing something here, but I think there are two problems: First, that's not a relative link: the initial slash is the root directory. I assume `en' does not actually lie there (together with bin, boot, dev, etc). If `en' is a subdirectory of the directory that contains the document that contains the link, you should either prefix the slash with a dot (`./') or drop the slash and use `file:en'. Second, if you're exporting from Org, just use an Org link, e.g.: [[./en/install-emacs-on-android][install Emacs on Android]] [[file:en/install-emacs-on-android][install Emacs on Android]] See the manual: [[info:org#External Links]]. Did this help? Regards, Christian
