def lex(config, s):
    return list(lex_html(config, s))
Example #2
0
def lex(s):
    config = CFMParserConfig(document_id=("test.md",), document_path="test.md", allowed_tags=set())
    return list(html_lexer.lex_html(config, s))