Skip to content

Commit

Permalink
πŸ› FIX: Fix to stop stripping of first line in MyST content (#165)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryo Takahashi <reiyw.setuve@gmail.com>
  • Loading branch information
foster999 and reiyw authored Jun 25, 2022
1 parent f2b4714 commit 9b061d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx_tabs/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def run(self):
else:
panel["hidden"] = "true"

self.state.nested_parse(self.content[2:], self.content_offset, panel)
self.state.nested_parse(self.content[1:], self.content_offset, panel)

if self.env.app.builder.name not in get_compatible_builders(self.env.app):
# Use base docutils classes
Expand All @@ -194,7 +194,7 @@ def run(self):
panel = nodes.container()

self.state.nested_parse(self.content[0:1], 0, tab_name)
self.state.nested_parse(self.content[2:], self.content_offset, panel)
self.state.nested_parse(self.content[1:], self.content_offset, panel)

tab += tab_name
outer_node += tab
Expand Down

0 comments on commit 9b061d5

Please sign in to comment.