private List<String> getOutputFormats(YamlTree tree) { List<String> outputs = tree.getChildKeys(RmdFrontMatter.OUTPUT_KEY); if (outputs == null) return null; if (outputs.isEmpty()) outputs.add(tree.getKeyValue(RmdFrontMatter.OUTPUT_KEY)); return outputs; }