mediawiki-extensions-Visual.../modules/parser
Gabriel Wicke 2efcd3cd57 Reworked percent encoding handling for URIs to get closer to the 'url
construction' part of the HTML5 spec:
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#url-manipulation-and-creation

Removed a few whitelisted test cases that are now passing directly.

The encoding canonicalization could also be moved to the Sanitizer. Doing this
early in token stream processing however has the advantage of providing further
transformations uniform data to work with. We could even consider to move this
even further into the tokenizer.
2012-03-06 13:49:37 +00:00
..
html5 Land big TokenTransformDispatcher and eventization refactoring. 2012-01-03 18:44:31 +00:00
ext.Cite.js Replace console.log with console.warn in all debug statements 2012-02-14 20:56:14 +00:00
ext.cite.taghook.ref.js Moving parser stuff back into the modules folder (oops) 2011-11-02 21:45:57 +00:00
ext.core.AttributeExpander.js Start to move wikilink expansion to a separate async token transformer. 2012-02-29 13:56:29 +00:00
ext.core.LinkHandler.js Reworked percent encoding handling for URIs to get closer to the 'url 2012-03-06 13:49:37 +00:00
ext.core.NoIncludeOnly.js Actually commit onlyinclude, as already announced in r112592. 2012-02-28 13:24:35 +00:00
ext.core.ParserFunctions.js Change wikilink tokenization strategy to split on pipes. This makes it 2012-03-05 12:00:38 +00:00
ext.core.PostExpandParagraphHandler.js Replace console.log with console.warn in all debug statements 2012-02-14 20:56:14 +00:00
ext.core.QuoteTransformer.js Replace console.log with console.warn in all debug statements 2012-02-14 20:56:14 +00:00
ext.core.Sanitizer.js Revert "* Always sort attributes (+1 test pass)." 2012-02-20 22:26:12 +00:00
ext.core.TemplateHandler.js Basic fall-through support for #switch parser function 2012-02-22 14:57:50 +00:00
ext.Util.js A few improvements to external link and image handling. 264 tests passing. 2012-03-05 15:34:27 +00:00
ext.util.TokenCollector.js Actually commit onlyinclude, as already announced in r112592. 2012-02-28 13:24:35 +00:00
mediawiki.DOMConverter.js Replace console.log with console.warn in all debug statements 2012-02-14 20:56:14 +00:00
mediawiki.DOMPostProcessor.js Replace console.log with console.warn in all debug statements 2012-02-14 20:56:14 +00:00
mediawiki.HTML5TreeBuilder.node.js Replace console.log with console.warn in all debug statements 2012-02-14 20:56:14 +00:00
mediawiki.parser.defines.js * Add custom toString methods for tokens to aid debugging 2012-02-13 17:02:23 +00:00
mediawiki.parser.environment.js Reworked percent encoding handling for URIs to get closer to the 'url 2012-03-06 13:49:37 +00:00
mediawiki.parser.js A few improvements to external link and image handling. 264 tests passing. 2012-03-05 15:34:27 +00:00
mediawiki.Title.js Reworked percent encoding handling for URIs to get closer to the 'url 2012-03-06 13:49:37 +00:00
mediawiki.tokenizer.peg.js A few improvements to external link and image handling. 264 tests passing. 2012-03-05 15:34:27 +00:00
mediawiki.TokenTransformManager.js A few improvements to external link and image handling. 264 tests passing. 2012-03-05 15:34:27 +00:00
parse.js Remove WikiDom default serialization and --html argument from parse.js 2012-02-11 17:59:17 +00:00
pegTokenizer.pegjs.txt Reworked percent encoding handling for URIs to get closer to the 'url 2012-03-06 13:49:37 +00:00
README.txt Hack up some rudimentary image rendering. Using jshashes for the md5, and 2012-03-01 13:51:53 +00:00

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.

npm dependencies: (This should be a proper package.json for npm to do it automatically?)

jquery
jsdom
buffer
optimist
pegjs
querystring
html5
jshashes
request (also required and automatically installed by jsdom)
assert

The following additional modules are used in parserTests:

colors (for parserTests eye candy)
diff (parserTests output diffing)