Support for yard-doctest
(cherry picked from commit d5eac54)
updates for stale elements