Subramanya Sastry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/292079

Change subject: Normalize all lists to not mix wikitext and HTML list syntax
......................................................................

Normalize all lists to not mix wikitext and HTML list syntax

* We have a "new-list-items-only" qualification when forcibly converting
  list items in HTML lists to HTML format.

* In 8d73f60a, I removed a similar qualification for tables to prevent
  mixing HTML and wikitext syntax for table content. Roundtrip testing
  seems to indicate this is going through well without dirty diffs.

* I am now removing the qualifier for lists as well. Hopefully there
  will be very few normalizations. Selser will continue to prevent
  large-scale normalization but when existing list items are edited,
  they will start getting normalized.

Change-Id: Ic39ce73bd1d3a17108ff9776bde82b45eeda4662
---
M lib/html2wt/WikitextSerializer.js
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/79/292079/1

diff --git a/lib/html2wt/WikitextSerializer.js 
b/lib/html2wt/WikitextSerializer.js
index b706b2f..eb85dca 100644
--- a/lib/html2wt/WikitextSerializer.js
+++ b/lib/html2wt/WikitextSerializer.js
@@ -721,9 +721,8 @@
        }
 
        // If parent node is a list in html-syntax, then serialize
-       // new elements in html-syntax rather than wiki-syntax.
-       if (DU.isNewElt(node)
-               && DU.isListItem(node)
+       // list content in html-syntax rather than wiki-syntax.
+       if (DU.isListItem(node)
                && DU.isList(node.parentNode)
                && DU.isLiteralHTMLNode(node.parentNode)) {
                return htmlElementHandler;

-- 
To view, visit https://gerrit.wikimedia.org/r/292079
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic39ce73bd1d3a17108ff9776bde82b45eeda4662
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <ssas...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to