]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / images_in_inlined_pages_have_wrong_relative_URL.mdwn
index 81cc93fb1ac1655b31c35feb5e32f393dbcdd0a7..e73c7e662b19cb8db59261323f65a770402fe492 100644 (file)
@@ -5,3 +5,18 @@ I can make an image link, such as:
 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]]