select all md on click, fixes #6