Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaba committed Nov 3, 2020
1 parent ec34f9a commit 484b792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m2r2.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def setup(app):
app.add_config_value("m2r_disable_inline_math", False, "env")
try:
app.add_source_parser(".md", M2RParser) # for older sphinx versions
except TypeError:
except (TypeError, AttributeError):
app.add_source_suffix(".md", "markdown")
app.add_source_parser(M2RParser)
app.add_directive("mdinclude", MdInclude)
Expand Down

1 comment on commit 484b792

@cglacet
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does. This seems required and important as it breaks doc generation

Please sign in to comment.