We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a17471 commit 266faecCopy full SHA for 266faec
custom_directives.py
@@ -88,7 +88,8 @@ def run(self):
88
if 'intro' in self.options:
89
intro = self.options['intro'][:195] + '...'
90
else:
91
- _, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname)
+ block_parser = sphinx_gallery.gen_rst.BlockParser(abs_fname, {"filetype_parsers": {}})
92
+ _, blocks = block_parser.split_code_and_text_blocks(abs_fname)
93
intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1])
94
95
thumbnail_rst = ''
0 commit comments