How to use the pcbdraw.populate.PcbDrawInlineLexer function in PcbDraw

To help you get started, we’ve selected a few PcbDraw 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 yaqwsx / PcbDraw / pcbdraw / populate.py View on Github external
def __init__(self, renderer, rules=None, **kwargs):
        super(PcbDrawInlineLexer, self).__init__(renderer, rules=None, **kwargs)
        self.enable_pcbdraw()
github yaqwsx / PcbDraw / pcbdraw / populate.py View on Github external
def parse_content(renderer, content):
    lexer = PcbDrawInlineLexer(renderer)
    processor = mistune.Markdown(renderer=renderer, inline=lexer)
    processor(content)
    return renderer.output()

PcbDraw

Utility to produce nice looking drawings of KiCAD boards

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages