Using custom font on theme module shows code below the text

Hello everyone, I need your help with an issue I’ve run into while working with a custom font on a HubSpot theme module.

I’ve added custom fonts to the module by following this documentation.

Add custom fonts to a theme (hubspot.com)

Here is the result. It now appears on the drop down.

However, I’m encountering an issue where it shows a code snippet below the text. In this example at left column, I changed the card text font to a custom one.

On the right column, we have the rich text module where I’ve set the same custom font, and it isn’t displaying code below it. I’ve noticed that this only occurs with rich text contained inside other HubSpot theme modules.

Hi, @dtg001 :waving_hand: Thanks for the question. Hey @GRajput , do you have any suggestions for @dtg001?

Thanks for taking a look! — Jaycee

Hi @dtg001

In the rich text, the font option will not appear in the font dropdown due to the Hubspot limitation.
Please check the limitation in the same doc at the bottom.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!