Update of "Extending Fossil's Wiki"
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 1def982dd40913647daa4b7e2a52f3a1da5fa1f3
Page Name:Extending Fossil's Wiki
Date: 2009-09-23 08:59:35
Original User: anonymous
Parent: d319b859af182422b8e6be9a330c0a22069faf86 (diff)
Next 5ec7ee58c61617442c3395f8c9f17a6159a97c72
Content

Creole Parser


A creole branch has been started by user Robert to:

  1. Develop a Creole 1.0 compatible wiki parser.
  2. Explore wiki parser options.
  3. Develop a standard interface for providing parser extensions.

A live demo of this branch is available here.

Two macros are used to switch between creole markukp and standard fossil markup: <<creole>> and <<fossil>>. Fossil wiki ignores <<fossil>>, but the creole parser uses it to switch back to fossil.

The 'append to wiki page function' uses this to ensure that any extensions are closed and the fossil wiki parser is back in charge before making any additions. <<creole>> can be used in the added text to get creole markup.

At the moment the <<creole>> markup can only be included while editing or appending to wiki pages, not for Tickets.


Other Suggested Wiki 'Enhancements'


1. Hierarchical namespaces for wiki pages

This is not as drastic as it sounds, the wiki pages could still be a flat table as they are now but their name would be interpreted to provide the illusion of a hierarchy.

  1. page names ending in '/' would be banned.
  2. In page listings, page names would be split on '/' and displayed as lists of lists
  3. When a link such as ./test1 is encountered it will be converted into the full name of the current page with /test1 appended.

2. Colorized code macro

A <<code>> / <<code>> macro could be used to wrap code in such a way that the code can easily be colorized with a javascript colorizer as per Cookbook:SourceHighlight. The trick here is to make sure that the code displays reasonably if no javascript is availiable.