Modify ↓
Opened 8 years ago
Last modified 8 years ago
#12512 new enhancement
Support relative path in ImageMacro when rendering wiki page in repository browser
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
We have a number of (trac-)wiki pages that we'd like to manage in our svn repository, but have them rendered in our trac. Unfortunately, the ImageMacro doesn't seem to support relative paths - this would be extremely useful since we have those documents in several branches, hence an absolute path is a no-go.
I've attached a patch that adds support for that so you can now refer to images like this:
[[Image(../pics/Example1.png, 250px)]]
Attachments (1)
Change History (2)
by , 8 years ago
Attachment: | 0001-Added-support-for-relative-source-links-in-image-mac.patch added |
---|
comment:1 by , 8 years ago
Note:
See TracTickets
for help on using tickets.
After the patch, a comment in the following line would be incorrect. That would be also fixed.
And, unit tests for the changes should be added if possible.