Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def find_replace( self, node ) :
if isinstance( node, docutils.nodes.block_quote ) :
return self.auto_admonition( node )
elif isinstance( node, docutils.nodes.Text ) :
return self.auto_nbsp( node )
else :
return recommonmark.transform.AutoStructify.find_replace( self, node )
def find_replace(self, node):
newnode = None
if isinstance(node, nodes.literal_block):
newnode = self.load_embedded_code_for_block(node)
return newnode if newnode else AutoStructify.find_replace(self, node)