Test: Inline Code Escaping

1 min read

Validates that backticked HTML comments and tags render literally as code.

draft: true

Inline Code Escaping Tests

These examples should render as literal code, not affect layout or be hidden by the browser.

This should be visible as code (escaped): <!-- link-preview -->

Mixed in text before and after: prefix <!-- link-preview --> suffix.

Backticked HTML Tag

This should render as inline code, not a real element: <div class="x">hello</div>

Control: Real HTML (not backticked)

This is real HTML and should render: chip

:::link-preview url="https://github.com/microsoft/TypeScript" title="GitHub - microsoft/TypeScript: TypeScript is a superset of JavaScript that compiles to clean JavaScript output." description="TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - microsoft/TypeScript" thumbnail="https://vnqodzputugappaozvrg.supabase.co/storage/v1/object/public/link-preview-images/7c872867bf9bed88cbe36d92bda1b58f20842d4bf647dc31b355767738381026.png" :::

Copyright 2025, Ran DingPrivacyTerms
Test: Inline Code Escaping