Parsoid
A bidirectional parser between wikitext and HTML5
Parsoid\Wt2Html Namespace Reference

Front-end/Wrapper for a particular tree builder, in this case the parser/tree builder from RemexHtml. More...

Namespaces

 TT
 General token sanitizer.
 

Classes

class  DOMPostProcessor
 Perform post-processing steps on an already-built HTML DOM. More...
 
class  Frame
 A frame represents a template expansion scope including parameters passed to the template (args). More...
 
class  Grammar
 
class  HTML5TreeBuilder
 
class  PageConfigFrame
 A special subclass of frame used for the topmost frame in the environment; gets most of its actual data from a PageConfig object. More...
 
class  Params
 A parameter object wrapper, essentially an array of key/value pairs with a few extra methods. More...
 
class  ParserPipeline
 Wrap some stages into a pipeline. More...
 
class  ParserPipelineFactory
 This class assembles parser pipelines from parser stages. More...
 
class  PegTokenizer
 
class  PipelineStage
 This represents the abstract interface for a wt2html parsing pipeline stage Currently there are 4 known pipeline stages: More...
 
class  TokenizerUtils
 
class  TokenTransformManager
 Token transformation manager. More...
 
class  XMLSerializer
 Stand-alone XMLSerializer for DOM3 documents. More...
 

Detailed Description

Front-end/Wrapper for a particular tree builder, in this case the parser/tree builder from RemexHtml.

Tokenizer for wikitext, using WikiPEG and a separate PEG grammar file (Grammar.pegphp)

Feed it tokens and it will build you a DOM tree and emit an event.

Use along with a Wt2Html/HTML5TreeBuilder and the DOMPostProcessor(s) for HTML output.