FIX: remove whitespaces around inline HTML tags next to text. (PR #10803)

Previously, extra space added like in the below example

HTML

To <b>demonstrate</b>, here is a sentence.

Markdown

To **demonstrate** , here is a sentence.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/quoting-bold-text-before-comma-adds-extra-space/165159/5

Nice fix!