Skip to content

Commit

Permalink
Use nested_parse_with_titles() instead of nested_parse()
Browse files Browse the repository at this point in the history
Fixes #152.
  • Loading branch information
mgeier committed Dec 22, 2017
1 parent 45a310a commit 7bd98b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nbsphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ def run(self):
if outputtype == 'rst':
classes = [self.options.get('class', ''), 'output_area']
output_area = docutils.nodes.container(classes=classes)
self.state.nested_parse(self.content, self.content_offset,
output_area)
sphinx.util.nodes.nested_parse_with_titles(
self.state, self.content, output_area)
container += output_area
else:
text = '\n'.join(self.content.data)
Expand Down

0 comments on commit 7bd98b6

Please sign in to comment.