Edgewall Software

Ticket #4356 (new enhancement)

Opened 2 years ago

Last modified 3 months ago

WikiCreole markup

Reported by: chuckssmith@… Owned by: cboos
Priority: low Milestone: 0.13
Component: wiki system Version: 0.9.6
Severity: normal Keywords:
Cc: ilias@…

Description

Hi, I just installed Trac and my development team would like to use the WikiCreole (www.wikicreole.org) markup in our project wiki. Are there any plans to make a parser for Creole? If not, would you please be able to develop it? Full specs can be found at http://www.wikicreole.org/wiki/Creole0.3 Thank you!

--Chuck Smith

Attachments

trac_wiki_creole-r4428.patch (2.9 KB) - added by cboos 2 years ago.
Adapt Trac WikiFormatting to be more compatible with WikiCreole

Change History

  Changed 2 years ago by eblot

  • keywords plugin added
  • status changed from new to closed
  • resolution set to wontfix

There is no plan to change the Wiki syntax.

You may want to write a plugin to support an alternative syntax (see th:wiki:WikiStart#Request-a-Hack)

  Changed 2 years ago by mgood

The Creole syntax seems pretty similar to what Trac already supports. The th:WikiGoodiesPlugin adds a bold and italics syntax similar to the one used in Creole, so you could use that as a basis for a plugin adding Creole-style bold and italics.

follow-up: ↓ 5   Changed 2 years ago by cboos

  • status changed from closed to reopened
  • resolution wontfix deleted
  • milestone set to 0.11

Yes, but that plugin only adds *bold* and /italic/ for single words. That could be extended to multiple words, but not across lines, as that spec says.

I've just gone through WikiCreole again, and I definitely think there are some good things that we can lift up from there:

  • use "|" as another separator in labeled links (links)
  • ... hm, well, that's about it ;)

For supporting **bold text** and //italic text//, the current workaround is simply to go and patch the Formatter, and edit those tokens appropriately, e.g.

  • formatter.py

     
    151151    # Some constants used for clarifying the Wiki regexps: 
    152152 
    153153    BOLDITALIC_TOKEN = "'''''" 
    154     BOLD_TOKEN = "'''" 
    155     ITALIC_TOKEN = "''" 
     154    BOLD_TOKEN = "**" 
     155    ITALIC_TOKEN = "//" 
    156156    UNDERLINE_TOKEN = "__" 
    157157    STRIKE_TOKEN = "~~" 
    158158    SUBSCRIPT_TOKEN = ",," 

It might even be interesting to see if we could have this notation in addition to the existing one.

  Changed 2 years ago by cboos

  • keywords plugin removed
  • severity changed from minor to normal

... and support for line breaks in ticket descriptions and comments, for the reasons given there.

The links using double brackets [[... link ...]] could probably be supported as well, as it should be easy to distinguish them from macro calls.

in reply to: ↑ 3   Changed 2 years ago by anonymous

Replying to cboos:

For supporting **bold text** and //italic text//, the current workaround is

...

  • formatter.py

     
    151151    # Some constants used for clarifying the Wiki regexps: 
    152152 
    153153    BOLDITALIC_TOKEN = "'''''" 
    154     BOLD_TOKEN = "'''" 
    155     ITALIC_TOKEN = "''" 
     154    BOLD_TOKEN = r"\*\*" 
     155    ITALIC_TOKEN = "//" 
    156156    UNDERLINE_TOKEN = "__" 
    157157    STRIKE_TOKEN = "~~" 
    158158    SUBSCRIPT_TOKEN = ",," 

of course :P)

Changed 2 years ago by cboos

Adapt Trac WikiFormatting to be more compatible with WikiCreole

  Changed 2 years ago by cboos

In attachment:trac_wiki_creole-r4428.patch:

  • Bold And Italics compatibility
    • // and ** can be used as italic and bold markup, in addition to the existing ones '' and '''
    • they mix by pairs, e.g. you can't end a '' by a //.
  • Links Internal And External compatibility
    • "|" can be used as a separator between the link and the label
    • simple square brackets or double square brackets can be used for links ([...] or [[...]])

All the existing wiki unit-tests still pass, so I think it's a good sign that this additions won't disturb existing Trac Wiki pages.

  Changed 23 months ago by ilias@…

  • cc ilias@… added

  Changed 21 months ago by cboos

  • owner changed from jonas to cboos
  • status changed from reopened to new

  Changed 18 months ago by cboos

  • milestone changed from 0.11 to 0.12

WikiEngine refactoring and related fixes postponed. At that point, the (full) WikiCreole support could be easily added as a plugin.

  Changed 3 months ago by fcorreia@…

just listening...

Add/Change #4356 (WikiCreole markup)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.