mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 12:16:51 +00:00
b3bd2ffe8d
* Removed murky ' :' -> ' :' replacement in tokenizer. This breaks four parser tests, and should be fixed in a token stream transformer or DOM postprocessor. This replacement clashes with round-tripping, and is not terribly important visually. * Added stx:row annotation to single-line dt/dd pairs and use it to preserve single-line syntax in the serializer. There is no attempt yet to support the addition of nested lists in an originally single-line dd. We'd need to look ahead in the serializer to support this. Perhaps the editor can simply drop data-mw in that case. * Switched default dt/dd serialization to multi-line. This supports all nested lists and multiple dds. * Don't close dls when switching from dt to dd or back in the token stream ListHandler. Overall 290 round-trip tests are passing now (up from 284, some due to , some due to lists). The number of passing parser tests dropped slightly from 303 to 297 (or 301/295 on weekdays other than Thursday). Change-Id: I85ff40571833713388c6523e6a4ba2e94daa3807 |
||
---|---|---|
.. | ||
html5 | ||
core-upgrade.js | ||
ext.Cite.js | ||
ext.cite.taghook.ref.js | ||
ext.core.AttributeExpander.js | ||
ext.core.BehaviorSwitchHandler.js | ||
ext.core.LinkHandler.js | ||
ext.core.ListHandler.js | ||
ext.core.NoIncludeOnly.js | ||
ext.core.ParserFunctions.js | ||
ext.core.PostExpandParagraphHandler.js | ||
ext.core.QuoteTransformer.js | ||
ext.core.Sanitizer.js | ||
ext.core.TemplateHandler.js | ||
ext.Util.js | ||
ext.util.TokenCollector.js | ||
mediawiki.ApiRequest.js | ||
mediawiki.DOMConverter.js | ||
mediawiki.DOMPostProcessor.js | ||
mediawiki.HTML5TreeBuilder.node.js | ||
mediawiki.LinearModelConverter.js | ||
mediawiki.parser.defines.js | ||
mediawiki.parser.environment.js | ||
mediawiki.parser.js | ||
mediawiki.Title.js | ||
mediawiki.tokenizer.peg.js | ||
mediawiki.TokenTransformManager.js | ||
mediawiki.WikitextSerializer.js | ||
package.json | ||
parse.js | ||
pegTokenizer.pegjs.txt | ||
README.txt |
A combined Mediawiki and html parser in JavaScript running on node.js. Please see (https://www.mediawiki.org/wiki/Future/Parser_development) for an overview of the current implementation, and instructions on running the tests. You might need to set the NODE_PATH environment variable, export NODE_PATH="node_modules" Download the dependencies: npm install Run tests: npm test