refactor markdown