def auto_inline_code(self, node):
assert isinstance(node, nodes.literal)<EOL>if len(node.children) != <NUM_LIT:1>:<EOL><INDENT>return None<EOL><DEDENT>content = node.children[<NUM_LIT:0>]<EOL>if not isinstance(content, nodes.Text):<EOL><INDENT>return None<EOL><DEDENT>content = content.astext().strip()<EOL>if content.startswith('<STR_LIT:$>') and content.endswith('<STR_LIT:$>'):<EOL><INDENT>if not self.config['<STR_LIT>']:<EOL><INDENT>return None<EOL><DEDENT>content = content[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL>self.state_machine.reset(self.document,<EOL>node.parent,<EOL>self.current_level)<EOL>return self.state_machine.run_role('<STR_LIT>', content=content)<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Try to automatically generate nodes for inline literals.

        Parameters
        ----------
        node : nodes.literal
            Original codeblock node
        Returns
        -------
        tocnode: docutils node
            The converted toc tree node, None if conversion is not possible.