Markdown posts are wrapped in <p> tags, causing the mentions to appear on a line above:
<p>
Now we check if the content starts with <p>, and if so insert the mentions inside the first <p> tag.