public String getReferenceText() {
    String text = getNode().getText();
    text = StringUtil.replace(text, "\n", " ");
    text = text.replaceAll("\\\\([^\\\\]+)", "$1");
    if (text.startsWith("`") && text.endsWith("`_"))
      return text.substring(1, text.length()-2);
    if (text.endsWith("__"))
      return "__";
    if (text.startsWith("|") && text.endsWith("|"))
      return text;
    return text.substring(0, text.length()-1);
  }
public String getReferenceText()