if (item instanceof List) {
@SuppressWarnings("unchecked")
List<Object> list = (List<Object>) item;
nodesToText(list, resultBuffer);
} else if (item instanceof EndTagToken) {
EndTagToken node = (EndTagToken) item;
if (node.getName().equals("br")) {
resultBuffer.append("<br>");
} else if (node.getName().equals("hr")) {
resultBuffer.append("\n----\n");
}
} else if (item instanceof BaseToken) {
nodeToWiki((BaseToken) item, resultBuffer);
}