Closed drrosa closed 2 years ago
I'm using Sphinx programmatically, so I created a subclass:
class CustomCommonMarkParser(CommonMarkParser):
def visit_document(self, node):
pass
and then later (I need to not add 'recommonmark' to the extensions
config):
app.add_source_suffix('.md', 'markdown')
app.add_source_parser(CustomCommonMarkParser)
@jpmckinney Thanks for sharing a workaround to this issue!
I'm still seeing this warning with recommonmark 0.6.0
I'm still seeing this warning with recommonmark 0.6.0
The same with me.
...\site-packages\recommonmark\parser.py:75: UserWarning: Container node skipped: type=document
I still got the same warning in version 0.7.1. @ericholscher Could you please add
def visit_document(self, mdnode):
pass
to parser.py or are there arguments against it?
We are seeing a lot of warnings like the following for every
.md
document:.../python3.6/site-packages/recommonmark/parser.py:75: UserWarning: Container node skipped: type=document
It looks like
def default_depart(self, mdnode)
generates a warning for every container node of type document because the methodvisit_document
does not exist?PR https://github.com/readthedocs/recommonmark/pull/106 addresses part of this issue by providing useful debug info, but the warnings are still getting generated.