()
| 1547 | // Attempt to parse link destination, returning the string or |
| 1548 | // null if no match. |
| 1549 | var parseLinkDestination = function() { |
| 1550 | var res = this.match(reLinkDestinationBraces); |
| 1551 | if (res === null) { |
| 1552 | res = this.match(reLinkDestination); |
| 1553 | if (res === null) { |
| 1554 | return null; |
| 1555 | } else { |
| 1556 | return normalizeURI(unescapeString(res)); |
| 1557 | } |
| 1558 | } else { // chop off surrounding <..>: |
| 1559 | return normalizeURI(unescapeString(res.substr(1, res.length - 2))); |
| 1560 | } |
| 1561 | }; |
| 1562 | |
| 1563 | // Attempt to parse a link label, returning number of characters parsed. |
| 1564 | var parseLinkLabel = function() { |
nothing calls this directly
no test coverage detected