Parsoid
A bidirectional parser between wikitext and HTML5
|
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. | |
|
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).