Squarespace keeps every page inside a curated typography set, and the editor enforces it by re-parsing paste. A Code Block is the deliberate escape hatch — it keeps markup verbatim and inherits only page CSS. This page covers Text block versus Code Block, Fluid Engine width limits, and why Code Injection is not the answer.
Squarespace's editor converts pasted HTML into its block system. Inline styles from Google Docs override template typography, causing mismatched fonts and sizes across your site. Complex HTML structures (nested tables, multi-level lists) may not convert correctly to Squarespace blocks.
Editor:Squarespace 7.1 Fluid Engine editor, with Code Blocks and a Markdown block
Squarespace maps the paste onto its own block model. Paragraphs and headings usually survive, while nested markup, tables and multi-level lists collapse into plain paragraphs.
The block keeps your markup verbatim and renders it inside .sqs-block-code. It inherits only the page's CSS — with no inline styles, it picks up the site's body font and colour.
Code Injection is site-wide head or footer code, meant for analytics and verification tags. Using it for article content puts markup on every page and is not a substitute for a Code Block.
The Markdown block converts its text to HTML at render time. It is the simplest option for text-only content, but it cannot carry a table or custom attributes.
Copy the passage from your source document
Clean it in Publish Helper, leaving Remove inline styles on so the template typography applies
On the page or blog post, add a Code Block (Add → Code) where the content should appear
Paste the markup into the block, then close the editor and check the live page
If the layout is a single column with a wide table, wrap the table in an overflow-x container before pasting
The block was switched into its display mode, or the paste landed in a Text block. Open the block settings, enable the HTML/source view, and paste there — the published page should render the markup.
A Code Block sits in a Fluid Engine grid cell with a fixed width. Remove table width attributes and cell widths, then wrap the table in a container with overflow-x so it can scroll inside the cell.
Inline styles from Google Docs out-rank the template. Strip styles so the Code Block inherits the site's body typography, then adjust size through the block's own CSS if needed.
Squarespace's template system is built around a small, curated set of typography styles, and the editor is designed to keep every page inside that set. A Text block enforces the model by re-parsing what you paste; a Code Block deliberately steps outside it. That makes the choice between the two the main decision: use a Text block when you want the template to own the styling, and a Code Block when the structure itself matters more than the theme.
Fluid Engine adds a grid dimension that older tutorials ignore. Code Blocks occupy a cell whose width is set by the layout, so anything wider than the cell — a table, a fixed-width diagram — will overflow rather than reflow. Cleaning the markup of width attributes and letting CSS handle overflow is more predictable than trying to size the block to match a desktop preview.
No. Clean HTML without inline styles inherits the template's typography, which is what you want. It is the bloated paste from a document editor that overrides fonts, sizes and colours and makes pages look inconsistent.
The content inside a Code Block is still in the page's HTML and is indexed normally. Keep genuine headings inside the block so the page has a real outline, rather than styling text to look like a heading.
No — clean HTML without inline styles inherits your template's typography and colors. It's the dirty HTML from Google Docs that breaks templates by overriding styles.
For straightforward content (paragraphs, headings, lists), a Text Block works well with clean HTML. For complex content with tables or specific HTML structure, use a Code Block.
Squarespace's Text Block converts HTML into its own block format, which may alter some structures. A Code Block preserves your HTML exactly. Use Publish Helper either way to ensure the markup is clean.
Ready to clean your HTML?
Open Publish HelperLast updated: March 2026