Improve parsing of user input while editing docs.