private String parseLinkDestination(){
  String res=match(LINK_DESTINATION_BRACES);
  if (res != null) {
    if (res.length() == 2) {
      return "";
    }
 else {
      return Escaping.unescapeString(res.substring(1,res.length() - 1));
    }
  }
 else {
    res=match(LINK_DESTINATION);
    if (res != null) {
      return Escaping.unescapeString(res);
    }
 else {
      return null;
    }
  }
}

private String parseLinkDestination ( ) { String res = match ( LINK_DESTINATION_BRACES ) ; if ( res != null ) { if ( res . length ( ) == 2 ) { return "" ; } else { return Escaping . unescapeString ( res . substring ( 1 , res . length ( ) - 1 ) ) ; } } else { res = match ( LINK_DESTINATION ) ; if ( res != null ) { return Escaping . unescapeString ( res ) ; } else { return null ; } } }
attempt to parse link destination , returning the string or null if no match .
