Code block is not rendering on tooltip

If you have a code block in a page and you hover the page link on another page where it is mentioned, the code block will not render correctly:

However, if you edit the content on the pop up - then it renders properly.