Current workaround - I have converted all of the URLs in the markdown
into absolute URLs.  That means that the hyperlinks for the README.md
document always point to the "trunk" check-in, rather than to the
versions of the linked documents that are in the same check-in as the
README.md file being viewed.  I think that is undesirable.  But it is
a quick fix.

Still seeking a better long-term solution...

On 3/30/18, Richard Hipp <[email protected]> wrote:
> Problem reported here: https://news.ycombinator.com/item?id=16714672
>
> For the project in question, the README.md file is intended to be the
> homepage and to be displayed using the /doc/VERSION URI.  But it also
> gets display using the /dir URI and in that case the relative
> hyperlinks are not correct.  I could make the hyperlinks absolute, but
> that would tie them to a particular version.
>
> One solution is to rearrange the files in the project so that the
> homepage is called something other than README.md, then it won't be
> displayed automatically as part of /dir.
>
> But I'm seeking a more general solution for how to handle hyperlinks
> in Markdown (or Wiki or HTML) documents that can be displayed using a
> variety of URLs.
>
> --
> D. Richard Hipp
> [email protected]
>


-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to