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

Serializes language variant markup, like `-{ ... More...

Classes

class  DiffUtils
 
class  DOMDiff
 A DOM diff helper class. More...
 
class  DOMNormalizer
 DOM normalization. More...
 
class  LanguageVariantHandler
 
class  LinkHandlerUtils
 Serializes link markup. More...
 
class  SelectiveSerializer
 If we have the page source (this.env.page.src), we use the selective serialization method, only reporting the serialized wikitext for parts of the page that changed. More...
 
class  Separators
 
class  SerializerState
 State object for the wikitext serializers. More...
 
class  SingleLineContext
 Stack and helpers to enforce single-line context while serializing. More...
 
class  WikitextEscapeHandlers
 
class  WikitextSerializer
 Wikitext to HTML serializer. More...
 
class  WTSUtils
 

Detailed Description

Serializes language variant markup, like `-{ ...

This is a Serializer class that will compare two versions of a DOM and re-use the original wikitext for unmodified regions of the DOM.

}-`.

Originally this relied on special change markers inserted by the editor, but we now generate these ourselves using DOMDiff.