On Fri, Apr 29, 2011 at 1:29 PM, Stephan Beal <[email protected]> wrote:
> On Fri, Apr 29, 2011 at 6:31 PM, Bill Burdick <[email protected]>
> wrote:
>>
>> You can access raw wiki pages by getting the id of the wiki page and then
>> using a "raw" URL.  You can use a "whistory"
>
> Yes, but that is of limited utility - i don't want to update all external
> links every time i update a wiki page, nor do i want to download/parse the
> whistory data just to extract the id.

Thinking about it, I started wondering if the <nowiki> tag could be
used to acheive the desired result. I created a new wiki page with the
entire content contained with in <nowiki> ... </nowiki>. The result
might be acceptable, assuming you do not need to omit the usual Fossil
header and footer. Conveniently, Fossil puts the wiki page content
with in <div class="content"> ... </div>, so it is not hard to find
the "raw" wiki content (The <p> .. </p> were also added automatically
by Fossil, but what's between those tags is what I enter between the
<nowiki> ... </nowiki> tags when I created the test page.)

<div class="content">
<p>
This is a test of the <b>nowiki</b> tag.

[LinkToNoWhere]

This has been a <b>test</b>.

</p>
</div>

While this does work, it does require the user to add <nowiki> ...
</nowiki> as an extra step, so an actual way to get the unrendered
version of the wiki content without using artifact IDs is still
desirable. Also, this means that whatever custome wiki markup is used
will have to have its own "no wiki" tag that is different from
<nowiki> ... </nowiki>.

However, it does suggest that this feature might possibly be
implemented with an option that simulates having <nowiki> ...
</nowiki> surrounding the wiki content.

Maybe like: http://127.0.0.1:8080/wiki?name=TestingNoWikiTag&raw=1
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to