emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] why prepend "file://" to abs paths in html output?


From: Nicolas Goaziou
Subject: Re: [O] why prepend "file://" to abs paths in html output?
Date: Sun, 09 Jul 2017 12:45:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Tim Cross <address@hidden> writes:

> Perhaps we need a way to easily set a context for web exports. If the
> context is set, then use it, otherwise, use file:/// (actually, I
> thought this was already there, but it has been a while since I did html
> exports where links were necessary).

The following patch implements `org-html-root', which allows to export
file links as root-relative URL. I'm not sure the docstring is clear
enough, tho.

Also, HTML publishing process always bind the above to publishing
directory, without user intervention.

So, basically, upon exporting the following document to HTML:

  #+html_link_root: /tmp/
  [[/tmp/unicorn.jpg]]

the link becomes

  <img src="/unicorn.jpg" alt="unicorn.jpg" />


WDYT?

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]