generate todo.txt from markdown parser and add \state command