SWC-876: remove old markdown dependency and clean up dead code