mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
a8fa9433c4
token stream. This is the first token transformation exercising the TokenTransformer class as its dispatcher. Template expansions, wiki link formatting, tag sanitation and extensions should be able to use the same dispatcher by registering for specific token types. The parser performance is very slightly improved as the token stream is only traversed once. |
||
---|---|---|
.. | ||
dumpReader.js | ||
expansionTest.js | ||
parserTests-whitelist.js | ||
parserTests.js | ||
parserTests.pegjs | ||
README | ||
roundtrip-test.js | ||
roundtrip.js | ||
tests.html | ||
wikia-rte-roundtrip-tests.xml | ||
worker.js |
Work in progress. :) Batch-testing tools loading the parsing code into node.js, and going through a MediaWiki XML export dump to run round-trip tests over it. Currently not much will succeed as there's bad handling of newlines. ;) Need npm modules: * pegjs * colors * html5 * jquery * jsdom * diff * libxmljs (requires native compilation) * optimist (for argument handling) * webworker