Fixed an issue with bold and italic texts being improperly formated in markdown when they include trailing or leading spaces.