Tab nearby md

Partial implementation of #92. See notes in that ticket.