JavaScript Other
Latest commit de4a6f4 Dec 1, 2016 jenkins-bot committed with Gerrit Code Review Merge "Use siteinfo for gallery options"
Permalink
Failed to load latest commit information.
.jsduck Use mediawiki-title package to replace homegrown Title code Jul 19, 2016
bin Merge "Bump contentVersion to 1.3.0" Nov 28, 2016
guides Update README.md to reflect new service-runner mechanism. Jul 22, 2016
lib Merge "Use siteinfo for gallery options" Dec 1, 2016
tests T102209: Assign ids to headings to match core's section anchors Nov 30, 2016
tools T102209: Assign ids to headings to match core's section anchors Nov 30, 2016
.gitignore Add --record and --replay options to parse.js Oct 7, 2016
.gitreview Amending .gitreview for new repository name Nov 13, 2013
.jscsrc Update many deps by minor version Jun 17, 2016
.jshintignore Add autoload mechanism for user extension code. Apr 27, 2016
.jshintrc [jshint] Set `shadow` to "outer" Dec 2, 2015
.travis.yml T119228: Stop testing on node v0.10.x Nov 1, 2016
AUTHORS.txt Update authors list Oct 26, 2016
COPYING.txt Clarify that Parsoid is GPLv2+ Apr 14, 2015
HISTORY.md T102209: Assign ids to headings to match core's section anchors Nov 30, 2016
README.md Update README.md to reflect new service-runner mechanism. Jul 22, 2016
config.example.yaml linter: Use already-configured MW API URL Oct 16, 2016
core-upgrade.js Revert "Performance: Only pull in the core-js shim for node < v4" Mar 15, 2016
jsduck.json Use mediawiki-title package to replace homegrown Title code Jul 19, 2016
localsettings.example.js Update README.md to reflect new service-runner mechanism. Jul 22, 2016
npm-shrinkwrap.json Remove unused package gelf-stream Nov 24, 2016
package.json Remove unused package gelf-stream Nov 24, 2016

README.md

Parsoid

Build Status Coverage Status

A combined Mediawiki and html parser in JavaScript running on node.js. Please see (https://www.mediawiki.org/wiki/Parsoid) for an overview of the project.

You might need to set the NODE_PATH environment variable:

export NODE_PATH="node_modules"

Download the dependencies:

npm install

Run tests:

npm test

Configure your Parsoid web service.

cp config.example.yaml config.yaml
# Tweak config.yaml

Run the webservice:

npm start

More installation details are available at https://www.mediawiki.org/wiki/Parsoid/Setup

Developer API documentation can be found at https://doc.wikimedia.org/Parsoid/master/ and some helpful getting-started guides are at https://doc.wikimedia.org/Parsoid/master/

License

Copyright (c) 2011-2015 Wikimedia Foundation and others; see AUTHORS.txt.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.