inlineDestination finds the destination written beside a reference, as the "./f.png" of [text](./f.png).
(src []byte, i, hi int)
| 599 | // inlineDestination finds the destination written beside a reference, as the |
| 600 | // "./f.png" of [text](./f.png). |
| 601 | func inlineDestination(src []byte, i, hi int) byteRange { |
| 602 | i = skipSpace(src, i, hi) |
| 603 | if i < hi && src[i] == '<' { |
| 604 | if stop, ok := scanAngleDest(src, i, hi); ok { |
| 605 | return byteRange{i, stop} |
| 606 | } |
| 607 | } |
| 608 | return byteRange{i, scanBareDest(src, i, hi)} |
| 609 | } |
| 610 | |
| 611 | // scanBareDest reads an unbracketed destination, which ends at whitespace or |
| 612 | // at the ")" closing the link. Parentheses inside the path are part of it as |
no test coverage detected