mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +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 |
||
---|---|---|
api | ||
contentEditable | ||
demos | ||
modules | ||
tests | ||
.gitignore | ||
.gitreview | ||
README | ||
SpecialVisualEditorSandbox.php | ||
VisualEditor.alias.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php |
We're starting to merge bits from Wikidom and ParserPlayground tests here. Enjoy! Short-term work highlights: * convert parser to wikidom format & using the wikidom serializer * port/update/write more tests * Special: page to host the editor as a standalone demo * Opt-in test mode to switch the editor in on EditPage (initially blank) * Use serializer to save pages from editor * Use parser to load pages into editor Long-term work highlights: * more thorough & bulk testing * more extension support