Go to file
Gabriel Wicke e584e35ecb Improve nested definition list serialization
Basically only prefix all bullets if the serialization output is going to be
in start-of-line context. The test for that is currently inline, but should
perhaps be factored out to a method or state flag instead.

We could alternatively consider to return the start-of-line prefix and let it
be used in _serializeToken in case we end up in start-of-line context.

This patch also fixes a newline issue on input like this:

:d1
::: d3

Both the list and list item handlers now set the startsNewline flag
dynamically depending on the context, so that we don't depend on the
suppression of newlines from list syntax by the singleLineMode any more.

There is still an extra newline inserted between list items in the following
example:

;t1 :d1
;;t2 ::d2

This looks like a bug in the produced DOM and not in the serializer, since the
outer definition list is closed and re-opened between d1 and t2.

Change-Id: I78e3a1ef34cf9159d5a1e86fb64c774ff111e71d
2012-06-21 15:28:43 +02:00
api Add localhost interwiki prefix by default, and fix links after default change 2012-06-21 09:53:18 +02:00
demos Update JS and CSS references in demo to point to new location - ve instead of ve2 2012-06-19 20:53:55 -07:00
modules Improve nested definition list serialization 2012-06-21 15:28:43 +02:00
tests * Replace spaces at the beginning and at the end of text node with   2012-06-20 15:32:14 -07:00
.gitignore Added node_modules and node error log file to git ignore 2012-06-10 23:56:50 -07:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
ApiVisualEditor.php Make the API module handle missing pages and page creations 2012-06-18 17:42:12 -07:00
README update a couple notes in VE readme 2011-11-02 21:14:04 +00:00
SpecialVisualEditorSandbox.php unnecessary to define messages here, followup r105972 2011-12-13 09:34:05 +00:00
VisualEditor.alias.php Localisation updates from http://translatewiki.net. 2012-06-11 14:31:40 +00:00
VisualEditor.hooks.php Remove userCan hook that had no effect 2012-06-18 17:42:11 -07:00
VisualEditor.i18n.php i18n for error messages 2012-06-20 19:33:19 -07:00
VisualEditor.php i18n for error messages 2012-06-20 19:33:19 -07:00

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