How to use the recommonmark.transform.AutoStructify.find_replace function in recommonmark

To help you get started, we’ve selected a few recommonmark examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GafferHQ / gaffer / doc / source / conf.py View on Github external
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 )
github NEAT-project / neat / docs / conf.py View on Github external
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)