Skip to content

Commit f2ad959

Browse files
Fix file extension check
1 parent 50a47e4 commit f2ad959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_helm/ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def run(self):
2323
)
2424
if self.options.get('output_format') is None:
2525
# if page is being built with myst use markdown
26-
if self.state.document.settings.get('source_suffix') == '.md':
26+
if self.state.document.current_source.endswith('.md'):
2727
self.options.update({'output_format': 'markdown'})
2828
else:
2929
self.options.update({'output_format': 'rst'})

0 commit comments

Comments
 (0)