HubSpot uses the same rich text module for pages and for marketing email, where the rendering constraints are opposite: pages want theme classes, email wants table structure and explicit spacing. This page covers Source Code in a module, why custom classes go inert, and Outlook's rendering limits.
HubSpot's rich text editor preserves pasted inline styles, which can override your HubSpot theme's CSS. This is particularly problematic for landing pages and emails where brand consistency is critical. HubSpot's email editor is especially sensitive to bloated HTML, as email clients have strict rendering limits.
Editor:HubSpot's rich text module inside the page, blog and email editors, with a Source Code / Advanced Options view
HubSpot keeps inline fonts, colours and sizes from the paste. The module's own typography settings still apply to elements without inline styles, so a pasted page ends up with two competing type scales.
The module stores the HTML you write there and prints it inside the module wrapper. Custom classes survive, but only if your template or a stylesheet actually defines them.
The drag-and-drop email editor wraps every module in table-based email HTML. Custom markup inside a rich text module is nested inside that structure, and Outlook drops several CSS properties the browser accepts.
HubL fields and custom modules have their own tag rules; a class-based layout from an imported document will not resolve because the class is not defined in your theme.
Copy the section you want to publish
Clean it in Publish Helper — strip inline styles so the module's own typography wins
In the page, blog or email editor, click into the rich text module and open its Source Code / Advanced Options panel
Paste the cleaned markup and save the module
Preview on the live page, and for email campaigns run a test send to an Outlook address as well
Some elements carry inline font declarations while others inherit the module's typography. Clean the paste so every element inherits, and set the type scale once in the theme.
Outlook's rendering engine ignores several modern CSS properties and collapses margins differently. Keep email HTML to tables, paragraphs and explicit inline spacing, and avoid relying on flex or grid.
The classes were defined in the source document, not in your HubSpot theme. Either add the rules to your stylesheet or remove the classes and rely on the theme's own selectors.
HubSpot sits between two worlds: a CMS that renders pages with a design system, and an email builder that has to survive Outlook. The same rich text module is used for both, but the constraints are opposite. On a page you want semantic markup and theme classes; in an email you want explicit, table-based structure and inline spacing. Cleaning the pasted HTML first is what lets each context apply its own rules instead of inheriting a document editor's.
Custom classes are the other HubSpot-specific trap. A Google Docs paste carries c1, c3 and similar class names that mean nothing in HubSpot; they are not errors, but they add noise and can collide with your theme's class names. Removing classes from the paste is safer than hoping the collision never matters.
In the page, blog or email editor, click into the rich text module, open the Advanced Options or the </> code toggle in the module toolbar, and paste your cleaned HTML there. The module keeps that markup and renders it inside its wrapper.
Use the drag-and-drop editor for ordinary newsletters and clean any pasted text first. For heavily designed campaigns, a custom email template gives you full control, but then you own Outlook and dark-mode testing yourself.
Google Docs inline styles override your HubSpot theme typography. Clean the HTML with Publish Helper first so your brand fonts, sizes, and colors apply correctly.
Yes, and it's especially important for emails. Email clients have strict HTML rendering rules and size limits. Clean HTML from Publish Helper renders more reliably across Gmail, Outlook, and Apple Mail.
Yes. Whether you're editing blog posts, landing pages, or website pages in HubSpot CMS, the workflow is the same: clean in Publish Helper, paste into Source Code view.
Ready to clean your HTML?
Open Publish HelperLast updated: March 2026