mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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 |
||
---|---|---|
.. | ||
jquery | ||
parser | ||
qunit | ||
rangy | ||
sandbox | ||
ve |