Chat responses are rendered from Markdown, so they arrive semantic — real headings, lists, strong and em, with almost no styling. The two real problems are smart-quote substitution inside code, and code blocks wrapped in UI containers. This page covers both.
Editor:ChatGPT's web and desktop chat interface (and other LLM chat UIs that render Markdown)
Chat responses are rendered from Markdown, so the HTML is already semantic: real headings, real lists, <strong> and <em>, and almost no style attributes. The problems are narrower but real. The renderer applies smart-typography substitutions, so straight quotes become curly quotes and hyphens become en or em dashes inside code and URLs. Code blocks arrive inside UI wrappers that carry scroll styling, and math or diagrams may be pasted as images rather than markup.
The chat renders Markdown as HTML in the browser. Copying a response gives you the rendered HTML flavour: <p>, <ul>, <ol>, <h2>/<h3>, <strong>, <em> and <code>, with almost no styling attributes.
The renderer runs smart-typography substitutions, so straight quotes become curly quotes and hyphens become en or em dashes. Those characters survive the paste and upset search snippets and code samples.
Fenced code arrives as <pre><code> — sometimes with a language class — inside a styled container div, and long blocks may be wrapped in a horizontal-scroll container.
Markdown pipe tables become real <table> markup with no cell styling, which is cleaner than most document-editor tables and still needs width handling on mobile.
Emoji render as characters, and LaTeX-ish expressions arrive as plain text or images depending on how they were written, not as markup you can publish.
ChatGPT (and other AI chat tools) Output
<div class="markdown prose"> <p>Here’s the plan — first we clean the markup.</p> <pre><code class="language-html"><p style="font-size:11pt">Draft</p></code></pre> </div>
Clean HTML
<p>Here's the plan - first we clean the markup.</p> <pre><code><p>Draft</p></code></pre>
Copy the response text, or copy the raw Markdown if the destination is Markdown-first
Clean in Publish Helper to remove code-block wrappers and any UI styling
Fix smart quotes and em dashes in a find-and-replace pass
Keep the semantic <pre><code> pair for code samples rather than a styled container
Often copies the raw Markdown rather than rendered HTML. Ideal for Markdown-first destinations; for HTML editors it lands as plain text with asterisks.
Copies the rendered HTML flavour, which is what most people do — clean block structure, no inline fonts, but with smart-quote substitutions and possible code-block wrappers.
The model echoes the code in a fenced block; copying that container often includes the fence markers, so strip the triple backticks before pasting into an HTML field.
Exports are usually Markdown or JSON. Markdown keeps structure but loses tables in some formats; JSON is not publishable content without conversion.
The chat renderer applies typographic substitution, and the characters are copied literally. Convert curly quotes back to straight quotes, or ask for the code inside a fenced block and copy from the raw source.
The chat UI wraps long code in a div for horizontal scrolling. Keep the inner <pre><code> and drop the wrapper, or the destination editor may treat the whole block as one styled div.
You copied the Markdown flavour. Either paste it into a Markdown-aware editor, or convert it through the Markdown → HTML tool before pasting into a CMS.
LLM chat output is the newest common paste source, and it is unusual in a helpful way: it is already semantic. The renderer produces real headings, real lists and real <strong>/<em>, because everything it shows comes from Markdown. There are no per-run font declarations and no proprietary classes, so the raw paste is often closer to publishable HTML than a document-editor paste ever is.
The two things that do need attention are typography and code. Smart-quote substitution changes characters inside code and URLs, which is a real correctness problem if you publish technical content. And code blocks arrive inside UI wrappers that carry scroll styling; keeping only the semantic <pre><code> pair avoids dragging interface CSS into the article.
Usually yes. The chat renders Markdown, so you get semantic headings, lists and emphasis without the inline font declarations a document editor emits. The remaining issues are smart-quote substitution and code-block wrappers.
The renderer applies typographic substitutions to plain Markdown punctuation. The substitutions are baked into the copied characters, so they persist into your CMS. Fix them in a find-and-replace pass before publishing.
The copy button usually hands over raw Markdown, while a manual selection gives the rendered HTML flavour. Pick by destination: Markdown-first editors want the raw source, HTML fields want the rendered version. If you paste and see asterisks and hash marks, you copied Markdown.
That is the chat UI rendering LaTeX to a picture, which leaves the content invisible to search engines and screen readers. If the formula matters, describe it in text or typeset it in HTML; if it is illustrative, keep the image but add descriptive alt text.
Last updated: March 2026