mediawiki-extensions-Visual.../modules/parser
Gabriel Wicke d3975a8d03 Very basic round-trip test mode for the API
Returns both the resulting wikitext and the diff with the original input.

Change-Id: Iad25039beb054a84e1ad51ffa9fee924db49c60b
2012-06-02 16:20:54 +02:00
..
html5
ext.Cite.js Forward-port Cite extension 2012-05-03 13:22:01 +02:00
ext.cite.taghook.ref.js
ext.core.AttributeExpander.js Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
ext.core.BehaviorSwitchHandler.js Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
ext.core.LinkHandler.js Handle link tails properly. 2012-06-01 23:41:10 -05:00
ext.core.ListHandler.js Don't eat newline tokens in the ListHandler 2012-05-16 23:14:21 +02:00
ext.core.NoIncludeOnly.js Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
ext.core.ParserFunctions.js Some more switch fixes 2012-06-02 15:04:20 +02:00
ext.core.PostExpandParagraphHandler.js Preserve original newlines in HTML and serialization 2012-05-29 23:29:03 +02:00
ext.core.QuoteTransformer.js Preserve original newlines in HTML and serialization 2012-05-29 23:29:03 +02:00
ext.core.Sanitizer.js Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
ext.core.TemplateHandler.js Very basic round-trip test mode for the API 2012-06-02 16:20:54 +02:00
ext.Util.js Nominate more HTML5 sectioning and heading elements for block-level treatment 2012-04-11 12:53:49 +02:00
ext.util.TokenCollector.js Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
mediawiki.DOMConverter.js
mediawiki.DOMPostProcessor.js First pass implementing a general tag minimization routine 2012-05-31 12:10:28 -05:00
mediawiki.HTML5TreeBuilder.node.js Preserve original newlines in HTML and serialization 2012-05-29 23:29:03 +02:00
mediawiki.LinearModelConverter.js Add HTML DOM -> linear model converter 2012-03-29 12:47:14 -07:00
mediawiki.parser.defines.js Fix up #switch a bit 2012-06-01 22:15:43 +02:00
mediawiki.parser.environment.js Resolve subpage links, and remove hack for H: titles 2012-05-24 17:57:41 +02:00
mediawiki.parser.js Big token transform framework overhaul part 2 2012-05-15 17:05:47 +02:00
mediawiki.Title.js Add basic thumb rendering support 2012-04-09 23:04:26 +02:00
mediawiki.tokenizer.peg.js Tokenizer backtracking cache bug fix and memory savings 2012-06-01 12:53:49 +02:00
mediawiki.TokenTransformManager.js Fix up #switch a bit 2012-06-01 22:15:43 +02:00
mediawiki.WikitextSerializer.js Handle link tails properly. 2012-06-01 23:41:10 -05:00
package.json Basic parser / serializer web service 2012-05-23 12:35:00 +02:00
parse.js Basic parser / serializer web service 2012-05-23 12:35:00 +02:00
pegTokenizer.pegjs.txt Tokenizer backtracking cache bug fix and memory savings 2012-06-01 12:53:49 +02:00
README.txt As much as I have loved writing Makefiles... I've replaced its functionality with package.json, mostly so we can avoid non-node dependencies. This is one of the recommended practices. We should consider moving tests/parser into modules/parser/tests, other node projects keep all module code in one directory. 2012-04-04 11:02:58 -07: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.

You might need to set the NODE_PATH environment variable,
  export NODE_PATH="node_modules"

Download the dependencies:
  npm install

Run tests:
  npm test