diff --git a/sphinx_asdf/directives.py b/sphinx_asdf/directives.py index de33d16..e39e547 100644 --- a/sphinx_asdf/directives.py +++ b/sphinx_asdf/directives.py @@ -413,6 +413,6 @@ def _process_examples(self, tree, filename): desc_text = self._markdown_to_nodes(example[0] + ":", filename) description = example_description(None, *desc_text) node.append(description) - node.append(nodes.literal_block(text=example[1], language="yaml")) + node.append(nodes.literal_block(text=example[-1], language="yaml")) examples.append(node) return examples