Add tests to verify detailed result format and basic content.

This commit is contained in:
David Anson 2016-10-16 21:46:02 -07:00
parent 23404f95ac
commit 5627bc27eb
13 changed files with 434 additions and 27 deletions

View file

@ -898,7 +898,8 @@ module.exports = [
var left = linkText.trimLeft().length !== linkText.length;
var right = linkText.trimRight().length !== linkText.length;
if (left || right) {
errors.addContext(token.lineNumber, linkText, left, right);
errors.addContext(
token.lineNumber, "[" + linkText + "]", left, right);
}
} else if (inLink) {
linkText += child.content;