Wikisyntax to html

This component renders wikisyntax (mediawiki) to html. It's used by the olat internal wiki but could be used on other places as well where you like to render wikisyntax to html (arbitrary textfields)

The parser for the wiki (mediawiki) syntax is from a other open source project called: Jamwiki.org. The source of the parser is located it the webapp/lib directory

Usage: To include the component see the following code snipplet. You create an component and pass a name an OlatRescourcable object and a size of the output div. You register your Contriller by adding a listener. If you like your component to display images you need an seession based mapper. Mappers (global or user session style: @see org.olat.core.dispatcher.mapper.Mapper) generate URI's that reference static content like images. To finally display your component add it to a container like a VelocityContainer.

wikiArticleComp = new WikiMarkupComponent("wikiArticle", ores, 300);
wikiArticleComp.addListener(this);
wikiArticleComp.setImageMapperUri(ureq, wikiContainer);
articleContent.put("wikiArticle", wikiArticleComp);

Events:

If your syntax contains links in wiki syntax like [[wikiword]] or [[Image:test.jpg]] then events are genereted that can be processed in your controller