More BACKTRACK tweaks (no effect on compiled releases)
This commit is contained in:
parent
b8407aa96d
commit
187318cebb
29 changed files with 124 additions and 106 deletions
|
|
@ -1654,9 +1654,12 @@ HTMLOut.prototype.getReadMe = function(sToken, sIndent, aParms, sPrevious)
|
|||
* it would be cleaner if this replacement could be performed by getTitle(), but unfortunately,
|
||||
* getTitle() is called long before any README.md is opened.
|
||||
*/
|
||||
var match = s.match(/^\s*<h([0-9])[^>]*>([^<]*)<\/h\1>/);
|
||||
var match = s.match(/^\s*<h([0-9])[^>]*>(.*?)<\/h\1>/);
|
||||
if (match) {
|
||||
obj.sHTML = obj.sHTML.replace(/(<title[^>]*>)([^\|]*)\|[^<]*(<\/title>)/, "$1$2| " + match[2] + "$3");
|
||||
var sTitle = match[2];
|
||||
match = sTitle.match(/<a [^>]*>([^<]*)<\/a>/);
|
||||
if (match) sTitle = match[1];
|
||||
obj.sHTML = obj.sHTML.replace(/(<title[^>]*>)([^\|]*)\|[^<]*(<\/title>)/, "$1$2| " + sTitle + "$3");
|
||||
}
|
||||
/*
|
||||
* We need to query the MarkOut object for any machine definitions that the current "readme"
|
||||
|
|
|
|||
Loading…
Reference in a new issue