parser: parse reference links

Parse links of style [test][reference]