mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
c0fc9e9a97
- Something like this: <ul><li>1</li><li>2<ul><li>2.1</li><li>2.2<ul><li>2.2.1</li><li>2.2.2</li></ul></li><li>2.3</li></ul></li><li>3</li></ul> now serializes properly to: *1 *2 **2.1 **2.2 ***2.2.1 ***2.2.2 **2.3 *3 So does this form which is what the above wikitext parses to: <ul><li>1 </li><li>2 <ul><li>2.1 </li><li>2.2 <ul><li>2.2.1 </li><li>2.2.2 </li></ul></li><li>2.3 </li></ul></li><li>3 </li></ul> - Lists (and nested lists) are not entirely newline-insensitive. They still depend on newlines *between* lists. The opening <ul> tag for non-nested lists should always start on a new line. So, for example, <ul><li>foo</li></ul><ul><li>bar</li></ul> will serialize to: *foo *bar which is incorrect. But, <ul><li>foo</li></ul> <ul><li>bar</li></ul> will correctly serialize to: *foo *bar Change-Id: I13a0290368574865957bcf57aebab488fbbb7026 |
||
---|---|---|
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