Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Html2Wt\LinkHandlerUtils Class Reference

Serializes link markup. More...

Static Public Member Functions

static linkHandler (SerializerState $state, Element $node)
 Main link handler.
 
static figureHandler (SerializerState $state, Element $node, ?MediaStructure $ms)
 Main figure handler.
 
static figureToConstrainedText (SerializerState $state, MediaStructure $ms)
 Serialize a figure to contrained text.
 

Detailed Description

Serializes link markup.

Member Function Documentation

◆ figureHandler()

static Wikimedia\Parsoid\Html2Wt\LinkHandlerUtils::figureHandler ( SerializerState $state,
Element $node,
?MediaStructure $ms )
static

Main figure handler.

Parameters
SerializerState$state
Element$node
?MediaStructure$ms

◆ figureToConstrainedText()

static Wikimedia\Parsoid\Html2Wt\LinkHandlerUtils::figureToConstrainedText ( SerializerState $state,
MediaStructure $ms )
static

Serialize a figure to contrained text.

WARN: There's probably more to do to ensure this is purely functional, no side-effects (ie. calls to state->emit) happen while processing.

Parameters
SerializerState$state
MediaStructure$ms
Returns
?ConstrainedText

◆ linkHandler()

static Wikimedia\Parsoid\Html2Wt\LinkHandlerUtils::linkHandler ( SerializerState $state,
Element $node )
static

Main link handler.

Parameters
SerializerState$state
Element$node

The documentation for this class was generated from the following file: