Zerowidth CleanerMeasured guides

CLAUDE WATERMARK REMOVER · MARKDOWN TEST

Can removing U+200B make a Markdown link point to the current page?

This link changed from an encoded hidden character to an empty destination after cleanup. Check the target before publishing.

Tested 12 November 2026 · Synthetic fixture · CommonMark.js 0.31.2

What changed in the preview

An empty href resolves against the current document or its configured base URL. A destination containing U+200B is different: the renderer percent encodes its UTF-8 bytes. Give the link an explicit path instead of assuming a visually blank destination is harmless.

What this test covers

The result measures the HTML href attribute without navigating, checking redirects, or applying a base element. Compare the two rendered outputs below with the original and cleaned source.

Measured source and preview

Original Markdown

[draft](\u200B)

Cleaned Markdown

[draft]()

The original source and its preview contain a literal U+200B, displayed below as \u200B. The HTML is shown as text.

Before cleanup

<p><a href="%E2%80%8B">draft</a></p>

After cleanup

<p><a href="">draft</a></p>

Reproduce locally

Save reproduce.cjs and tested-app.js together. Run npm install --no-save commonmark@0.31.2, then node reproduce.cjs. Compare with the recorded input, output and HTML. The test uses the homepage callback with a minimal DOM. It does not use Claude output or test statistical watermark detection.

See the CommonMark specification and another measured Markdown case.