A guide tells readers to type an HTML entity. In regular Markdown prose, the entity may render as its character instead of showing what to type. Put its spelling in an inline code span.

Keep the entity in a code span

For example, write this in the Markdown source:

Type `©` in the HTML source.

The code span shows ©. Plain © outside a code span becomes © in CommonMark rendering.

Plain Markdown turns the entity spelling © into the copyright character, while inline code retains the spelling.

Illustrated source and render comparison. Choose the format that matches what readers need to copy.

Check the preview and the copied text

Preview the note, select the example, and paste it into plain text. Check the opening ampersand, the four letters and the closing semicolon. For a longer snippet, use a fenced code block and check its indentation after copying.

A rendered code example visibly preserves the ampersand, entity name and semicolon.

Illustrated copy test. Paste the example into plain text and check the exact characters.

CommonMark’s entity references and code behavior.