Skip to content

Commit 266faec

Browse files
committed
tc
1 parent 2a17471 commit 266faec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_directives.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def run(self):
8888
if 'intro' in self.options:
8989
intro = self.options['intro'][:195] + '...'
9090
else:
91-
_, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname)
91+
block_parser = sphinx_gallery.gen_rst.BlockParser(abs_fname, {"filetype_parsers": {}})
92+
_, blocks = block_parser.split_code_and_text_blocks(abs_fname)
9293
intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1])
9394

9495
thumbnail_rst = ''

0 commit comments

Comments
 (0)