Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, renderer, rules=None, **kwargs):
super(PcbDrawInlineLexer, self).__init__(renderer, rules=None, **kwargs)
self.enable_pcbdraw()
def parse_content(renderer, content):
lexer = PcbDrawInlineLexer(renderer)
processor = mistune.Markdown(renderer=renderer, inline=lexer)
processor(content)
return renderer.output()