GWicke has uploaded a new change for review.

Change subject: Special-case handling for template-generated list items.
......................................................................

Special-case handling for template-generated list items.

If bullet has a content of '* bar',

* {{bullet}}
will result in
<ul><li>bar</li></ul>

and

* foo {{bullet}}
is expanded to
<ul><li>foo</li><li>bar</li></ul>

See https://bugzilla.wikimedia.org/show_bug.cgi?id=529 and Parser.php,
method braceSubstitution, line 3466 for the gory details how this came to
be.

The PHP parser also strips empty lists, which causes it to swallow the deep
prefix in

********* {{bullet}}

We don't currently do this in general, so perform a custom version of it
here.

With this patch, two more parserTests are passing, and pages like
[[1935 Philadelphia Phillies season]] round-trip without source diffs.

Change-Id: I2241900951b665422b459bb8e9684000cd7dbf4f
---
M js/lib/mediawiki.DOMPostProcessor.js
1 file changed, 92 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/18/32318/1
--
To view, visit https://gerrit.wikimedia.org/r/32318
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2241900951b665422b459bb8e9684000cd7dbf4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to