add parsing method so editor can edit existing markdown