Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
suffix arg removed from sphinx v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossNox committed Apr 6, 2020
1 parent 66f4a5a commit ee7c818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions m2r.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,11 +649,11 @@ def setup(app):
app.add_config_value('m2r_parse_relative_links', False, 'env')
app.add_config_value('m2r_anonymous_references', False, 'env')
app.add_config_value('m2r_disable_inline_math', False, 'env')
if hasattr(app, 'add_source_suffix'):
try:
app.add_source_parser('.md', M2RParser) # for older sphinx versions
except TypeError:
app.add_source_suffix('.md', 'markdown')
app.add_source_parser(M2RParser)
else:
app.add_source_parser('.md', M2RParser)
app.add_directive('mdinclude', MdInclude)
metadata = dict(
version=__version__,
Expand Down

0 comments on commit ee7c818

Please sign in to comment.