2017 © Pedro Peláez
 

library wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

image

jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

  • Tuesday, May 1, 2018
  • by laurentj
  • Repository
  • 3 Watchers
  • 13 Stars
  • 2,004 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 6 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

WikiRenderer 4 is a library to convert wiki content to an other format like HTML, Docbook, or other wiki syntax., (*1)

Warning: the master branch is currently unstable since we rework many things. Go to the 3.x branch to have a stable release. Documentation and the website are not updated yet for WikiRenderer 4., (*2)

WikiRenderer 4.0-pre supports these following markups:, (*3)

  • Dokuwiki syntax
  • Trac syntax
  • WR3 (a markup specific to WikiRenderer 3.0)
  • ClassicWR (a markup specific to WikiRenderer 1.0)

And it can generates HTML, Docbook, or cleaned text., (*4)

In the final release, support of Markdown markup and Markdown generator are planed., (*5)

Install

You can install it from Composer. See the page on Packagist.org, (*6)

Quick example

// first choose a Markup, by instancying its configuration object
// here we want to parse DokuWiki syntax
$markupConfig = new \WikiRenderer\Markup\DokuWiki\Config();

// then choose a generator, e.g., the object which generates
// the result text in the expected format. Here, HTML...
$genConfig = new \WikiRenderer\Generator\Html\Config();
$generator = new \WikiRenderer\Generator\Html\Document($genConfig);

// now instancy the WikiRenderer engine
$wr = new \WikiRenderer\Renderer($generator, $markupConfig);

// call render() method: it will parse DokuWiki syntax, and will
// generate HTML content
$html = $wr->render($awikitext);

Note: this is a new API and it may change until the release of 4.0., (*7)

Documentation and website

English and french documentation is on http://wikirenderer.jelix.org., (*8)

The documentation is not up-to-date and talk about WikiRenderer 3 which is not compatible with WikiRenderer 4. Help is welcome to update documentation and the website ;-), (*9)

The Versions

01/05 2018

dev-master

9999999-dev http://wikirenderer.jelix.org

WikiRenderer is a library to generate HTML or anything else from wiki content.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

wiki

28/06 2017

3.x-dev

3.9999999.9999999.9999999-dev http://wikirenderer.jelix.org

WikiRenderer is a library to generate HTML or anything else from wiki content.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

wiki

28/05 2016

v3.1.8

3.1.8.0 http://wikirenderer.jelix.org

WikiRenderer is a library to generate HTML or anything else from wiki content.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

wiki

05/06 2015

v3.1.7

3.1.7.0 http://wikirenderer.jelix.org

WikiRenderer is a library to generate HTML or anything else from wiki content.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

wiki

02/02 2015

dev-markdown

dev-markdown http://wikirenderer.jelix.org

WikiRenderer is a library to generate HTML or anything else from wiki content.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

wiki

02/12 2014

4.0.0-beta1

4.0.0.0-beta1 http://wikirenderer.jelix.org

WikiRenderer is a library to generate HTML or anything else from wiki content.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

wiki