Improved Markdown parser to be able to access / modify the current state of the generated attributed string