Fixed an issue with bold and italic texts being improperly formated in m...

...arkdown when they include trailing or leading spaces.