Fixed processing of pages with multiple command scripts

This commit is contained in:
Jeff Parsons 2017-02-07 11:29:16 -08:00 committed by Jeff Parsons
commit 69a7266d10
8 changed files with 149 additions and 124 deletions

View file

@ -526,7 +526,7 @@ MarkOut.prototype.convertMD = function(sIndent)
var aCommandDefs = aMatch[1].match(/\ncommands:([\s\S]*?)\n([^\s]|$)/);
if (aCommandDefs) {
var reCommand = /[ \t]+([^:]+):\s*\|/g;
var reCommand = /[ \t]+([a-z0-9$@_-]+):\s*\|/gi;
var aCommands = aCommandDefs[1].split(reCommand);
/*
* Since the preceding RegExp contains a capture group (representing the name of the command),