Christian Moe <[email protected]> writes:

> 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'.

This is in the context of blogging. I omitted my base URL which is
https://blog.khalidrafi.tech/ and only added the later parts of the
URL. Thus, it's a relative link. So, I need that particular output in
the resulting Markdown.
-- 
Khalid Rafi
Sent with Emacs

Reply via email to