Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support titles in verbatim blocks #517

Merged
merged 1 commit into from
May 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from docutils import nodes
from docutils.statemachine import ViewList
from sphinx.domains import cpp, c, python
from sphinx.util.nodes import nested_parse_with_titles

try:
from sphinxcontrib import phpdomain as php
Expand Down Expand Up @@ -1263,7 +1264,7 @@ def visit_verbatim(self, node):
rst_node.document = self.state.document

# Generate node subtree
self.state.nested_parse(rst, 0, rst_node)
nested_parse_with_titles(self.state, rst, rst_node)

return rst_node

Expand Down