aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn
blob: e73c7e662b19cb8db59261323f65a770402fe492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
I can make an image link, such as:

    ![image](image.jpg)

That will render as ![image](image.jpg).

If I then inline that page, the (relative) URL no longer points to the right place.  The fix for this promises to be hairy.

> Similarly, if you insert a relative link using the markdown link syntax,
> it will tend to break when the page is inlined.
> 
> However, there is a simple way to avoid both problems: Use WikiLinks
> and/or the [[img_directive|ikiwiki/directive/img]]. --[[Joey]]

> > For some inline HTML (e.g. SVG embedded with `<object>` tags, it
> > would be nice to have a URL directive for URL-only WikiLinks.
> > Something like:
> > `<object type="image/svg+xml" data="[[!url image.svg]]"></object>`.
> > This would be a more general solution than an [[SVG-specific
> > fix|todo/svg]]. --[[wtk]]

[[!tag done]]