if (item instanceof List) {
@SuppressWarnings("unchecked")
final 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("\\\\\n");
} else if (node.getName().equals("hr")) {
resultBuffer.append("\n----\n");
}
} else if (item instanceof BaseToken) {
nodeToWiki((BaseToken) item, resultBuffer);
}