The fact that links don't work makes sense because links are part of
Trac's format. If you are building the plugin - all it does is generate
HTML - Trac is not involved at that point. You may be able to use parts
of Trac's wiki processor code to do links, or if you have a fragment of
code that you know is a link, then you could use wiki_to_oneliner to
generate a link from the link; but you will have to responsible for
parsing out the Trac links by looking for CamelCase, [brackets] or
#numbers yourself. But that would greatly increase the complexity of the
interaction with the alternate wiki syntax you are trying to integrate
with, because you either can't pass it a whole document, or you have to
replace the trac links with wiki markup of the alternate engine to
insert arbitrary HTML.

 

For the RST case, I haven't used it but if I remember the help docs in
Trac, Trac has some provisions to be able to make links in the RST that
are part of its support of it

 

Modifying Trac to support different renderers on a per-page basis might
not be too difficult, but it might be almost prohibitively difficult to
integrate Trac links into that because really what you are doing at that
point is trying to invent a new wiki syntax that is a merge of Trac's
and some other wiki's.

 

Jason

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Sim
Sent: Monday, March 26, 2007 5:29 PM
To: [email protected]
Subject: [Trac] Re: Using a different wiki

 

Zwiki allows the use of a number of different markup systems, including
reStructured Text, Structured Text, MoinMoin, etc.  You can choose what
you want to use for each page with a pull-down menu.

I did try using the plugin method in Trac, and it works, sort-of.
(reStructured Text is one of the plugin markup systems already.)  Just
was hoping there was an easier/better way to not have to put the
{{{#!rst stuff at the top and to set a default to a different one.

And, using that method, it doesn't appear that any text is treated as
wiki links.  I have tried a number of ways to format that and nothing
seems to end up as a link.  So, this text just gets formated correctly,
but this:

{{{
#!rst
 
This Is Interesting
-------------------
 
- Item one.
 
- ItemTwo
 
- [Item Three]
 
Just ends up looking like this (no links):


        This Is Interesting


        *       Item one.
        *       ItemTwo
        *       [Item Three]

Sounds like it would have to be a project of mine to get something like
this going, so I'll have to see if I end up wanting it that bad.

-Sim





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to