GWicke has submitted this change and it was merged.

Change subject: Improved wikitext escaping.
......................................................................


Improved wikitext escaping.

* Unconditionally escape text that has a ' ' in sol position.
* Use url-tokenizer to detect if text within [ .. ] is a url.
* Discard mw:Entity tokens for the purpose of wt-escaping.
* Discard sanitizer noEndTag tokens (</br>) for the purpose of
  wt-escaping.
* 3 more parser tests green: 1 wt2wt, 1 html2wt, 1 html2html
* This should reduce nowiki tags on several test pages and
  reduce fails and skips in rt-testing.

Change-Id: I23e7d4b18c452b723da57ca7ac114b027ceb173d
---
M js/lib/ext.core.LinkHandler.js
M js/lib/mediawiki.WikitextSerializer.js
2 files changed, 54 insertions(+), 15 deletions(-)

Approvals:
  GWicke: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I23e7d4b18c452b723da57ca7ac114b027ceb173d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>

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

Reply via email to