I want to build a CMS/Wiki, I would like to make it with HTML5.
Unfortunately I have been looking for a Wiki rendering engine that could take as input Creole 1.0 syntax and render it as HTML5, Can anyone point me to a library for this purpose?
My second option is to write a renderer for XWiki to support HTML5. Any ideas of how to develop such thing?
The XWiki Rendering engine already supports Creole 1.0 as input syntax, and the output conforms to their recommended HTML output, including the
<pre>and<tt>tags for verbatim text (one for block, one for inline). Most of this HTML will be valid HTML5 as well, except for thetttag which has been removed.ttwas perceived as a purely stylistic tag, and semantically more meaningful tags likekbd,samp,codeandvarhad been available for a long time. The problem is that there are too many alternatives available, so it's hard to pick just one tag to represent correctly (from a semantical POV) all the things thatttis being used for. Should we add 4 different verbatim syntaxes to Creole? Or should we just usecodeeverywhere and ignore its semantics, making it the newtt? Or maybe usepreboth for inline and block content, and change the CSS so that it's not always a block element?Anyway, in order to implement a new
html/5.0syntax renderer, you'd probably have to copy the xhtml module, change most of the classes to just inherit theirxhtml/1.0equivalent, except forXHTMLChainingRendererwhere you should alter the waybeginFormatandendFormatbehave. You should also make an HTML5 parser, so also extend theXHTMLParserclass and add another handler forcodetags (we should probably do this by default, since it's a valid XHTML tag that we're currently ignoring).