Extra space and uneven font size in a callout


I am getting unnecessary spaces between heading and the body text:

Also, the font size inside the callout is not coming as expected:

I expect the font size to be like so (notice the callout):

Here’s the corresponding Colab Notebook of the blog post. Am I missing out on something?

So, I got around with the problems by:

  • Making sure my header is not exceeding the expected dimensions. So, I just shorted my header to remove that whacky extra space. Because of the longer header, an extra space was getting added in the next line.

  • I added <br/>s before the callout and also the text that follows the callout. The second bit was needed to ensure the font size of the following text was not getting messed up.