Skip to content

Commit

Permalink
fix: Render all content of title with revealjs-break
Browse files Browse the repository at this point in the history
This is patch and there is not test.
But I checked with demo.

Before:

```rst
What is this?
-------------
```

After:

```rst
What **is** this?
-----------------

.. revealjs-break::
```

Refs: #167
  • Loading branch information
attakei committed Sep 14, 2024
1 parent eec5396 commit fadb1f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx_revealjs/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def depart_revealjs_break(self, node: revealjs_break):
if "notitle" not in node.attributes:
title = find_child_section(node.parent, "title")
self.body.append(f"<h{self.section_level}>")
self.body.append(title.children[0])
for c in title.children:
c.walkabout(self)
self.body.append(f"</h{self.section_level}>")
self.body.append("\n")

0 comments on commit fadb1f7

Please sign in to comment.