Skip to content

Commit 9b061d5

Browse files
foster999reiyw
andauthored
šŸ› FIX: Fix to stop stripping of first line in MyST content (#165)
Co-authored-by: Ryo Takahashi <reiyw.setuve@gmail.com>
1 parent f2b4714 commit 9b061d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ā€Žsphinx_tabs/tabs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def run(self):
184184
else:
185185
panel["hidden"] = "true"
186186

187-
self.state.nested_parse(self.content[2:], self.content_offset, panel)
187+
self.state.nested_parse(self.content[1:], self.content_offset, panel)
188188

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

196196
self.state.nested_parse(self.content[0:1], 0, tab_name)
197-
self.state.nested_parse(self.content[2:], self.content_offset, panel)
197+
self.state.nested_parse(self.content[1:], self.content_offset, panel)
198198

199199
tab += tab_name
200200
outer_node += tab

0 commit comments

Comments
Ā (0)