mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
88fc91a292
* Changed PrefixImageOptions so that thumb and thumbnail are distinct key-value pairs. Without this fix, cannot distinguish between thumb=foo.jpg and thumbnail=foo.jpg * Fixed link handler so whitespace is preserved around prefixed image options. * Fixed figure handler to process the 3 different kind of image options: size, simple image options, and prefixed image options. * There is a hack/fixme for "upright: aspect" prefixed image option which needs to be looked into. * Still need to fix uppercasing of the image resource name. With these fixes, the following wikitext roundtrips perfectly (after newline breaks are removed) [[Image:Foo.jpg|thumbnail = 'baby.jpg'|100x100px|center| alt =bbbbb| upright=true|bottom|link='http://foo.bar'| This is a [[Linked Caption]] in the image]] Change-Id: I6606df56874c2b97f00f08cb6bbeaec9878167d3 |
||
---|---|---|
.. | ||
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.wikitext.constants.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