add parser for doctest blocks