Skip to content

Commit

Permalink
refactor: Simplify implements
Browse files Browse the repository at this point in the history
Refs: #167
  • Loading branch information
attakei committed Sep 15, 2024
1 parent 5c0a6d6 commit 03228bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sphinx_revealjs/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ def depart_revealjs_break(self, node: revealjs_break):
self.body.append(f"<section {attrs}>\n")
if "notitle" not in node.attributes:
title = find_child_section(node.parent, "title")
self.body.append(f"<h{self.section_level}>")
for c in title.children:
c.walkabout(self)
self.body.append(f"</h{self.section_level}>")
# NOTE: It has possibility to work side effect because re-walk for used nodes.
title.walkabout(self)
self.body.append("\n")

0 comments on commit 03228bd

Please sign in to comment.