mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
e117f09362
* Started to add more complete tag source range (tsr) annotations to most start / empty tags. These replace the old sourcePos and sourceTagPos annotations, and look more promising for general round-tripping than block source ranges (bsr). See http://www.mediawiki.org/wiki/User:GWicke/Parsoid_source_ranges for some notes on this. * Added an escapeWikitext method in the serializer that tokenizes supposedly text-only content from the DOM with the tokenizer and wraps runs of returned non-text tokens into nowiki tags. The source corresponding to non-text tokens is retrieved using the tsr annotations. * Removed old (unused) table productions to avoid confusion. * 276 round-trip tests are passing, vs. 283 without escaping. Known issues: * harmless for now, can be improved later: urllinks in external link captions are wrapped in nowiki. Example HTML: <a rel='mw:extLink' href="http://example.com">http://example2.com</a> * some start-of-line syntax in wiki-syntax preformatted blocks might be wrapped into nowiki when that would not really be needed. Example HTML DOM: <pre> * foo * bar </pre> Change-Id: I01c34aedd5c566614d36924add47a6a960e91987 |
||
---|---|---|
.. | ||
jquery | ||
parser | ||
qunit | ||
rangy | ||
sandbox | ||
ve |