Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\DOM\Handlers\LiFixups Class Reference

Static Public Member Functions

static migrateTrailingSolTransparentLinks (Element $li, DTState $state)
 Earlier in the parsing pipeline, we suppress all newlines and other whitespace before sol-transparent links which causes them to be swallowed into preceding paragraphs and list items.
 

Member Function Documentation

◆ migrateTrailingSolTransparentLinks()

static Wikimedia\Parsoid\Wt2Html\DOM\Handlers\LiFixups::migrateTrailingSolTransparentLinks ( Element $li,
DTState $state )
static

Earlier in the parsing pipeline, we suppress all newlines and other whitespace before sol-transparent links which causes them to be swallowed into preceding paragraphs and list items.

However, with wikitext like this: *a\n\n[[Category:Foo]], this could prevent proper roundtripping (because we suppress newlines when serializing list items). This needs addressing because this pattern is extremely common (some list at the end of the page followed by a list of categories for the page).


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