def itertext(elem):
    if elem.text:
        yield elem.text
    for e in elem:
        for s in itertext(e):
            yield s
        if e.tail:
            yield e.tail
Loop through all children and return text only. 
dataset/ETHPy150Open darcyliu/storyboard/markdown/extensions/headerid.py/itertext