Skip to content

Instantly share code, notes, and snippets.

@subbuss
Created December 9, 2013 22:31
Show Gist options
  • Save subbuss/7882182 to your computer and use it in GitHub Desktop.
Save subbuss/7882182 to your computer and use it in GitHub Desktop.
[subbu@earth tests] node debug parse --inputfile /tmp/foo --fetchConfig false
< debugger listening on port 5858
connecting... ok
break in parse.js:7
5 */
6
7 var ParserEnv = require('../lib/mediawiki.parser.environment.js').MWParserEnvironment,
8 ParsoidConfig = require( '../lib/mediawiki.ParsoidConfig.js' ).ParsoidConfig,
9 WikitextSerializer = require('../lib/mediawiki.WikitextSerializer.js').WikitextSerializer,
debug> c
break in parse.js:228
226 }
227
228 debugger;
229
230 var parsoidConfig = new ParsoidConfig( null, { defaultWiki: prefix } );
debug> c
< <body data-parsoid='{"dsr":[0,10,0,0]}'><p data-parsoid='{"stx":"html","dsr":[0,9,3,4]}'>hi</p>
< </body>
program terminated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment