Skip to content

Preserve parentheses in Markdown link destinations - #151

Merged
ralyodio merged 4 commits into
profullstack:masterfrom
RowletCC:fix/link-parentheses
Sep 21, 2026
Merged

ralyodio merged 4 commits into
profullstack:masterfrom
RowletCC:fix/link-parentheses

Conversation

@RowletCC

Copy link
Copy Markdown
Contributor

Explicit Markdown links truncate destinations containing parentheses. For example, [Example](https://example.com/reports(2026)) points to the incomplete URL and leaves a stray closing parenthesis in the rendered text. Escaped parentheses and image destinations are affected too.

Parse balanced and escaped destination parentheses, then consume an optional quoted title separately. Keep the existing URL allowlist, output escaping, bare-URL behavior, image-to-link option and empty-link behavior unchanged. This is a bounded rendering fix, not a claim of complete CommonMark support.

Validation: the ordinary destination regression fails against upstream 282feb1 and passes with this change. Five focused offline rendering tests pass, covering links, images, titles (including unmatched parentheses in title text), punctuation, empty labels and existing bare URLs. Production TypeScript build, TypeScript checking and git diff --check pass. No external-service tests or unrelated security cases were run.

Reference: GFM link destination syntax.

Submitted under the published $0.25 USD-equivalent reward per valid bug-fix PR, using the existing application and settlement conversation. Requested settlement remains native SOL on Solana mainnet, with acceptance and the exact net token amount confirmed before payment.

RowletCC and others added 4 commits September 20, 2026 20:57
Each of these PRs passed alone and failed together:

- profullstack#149 emits start="N" on ordered lists, so the profullstack#161 marker-width tests
  that begin at 12345 now expect the attribute.
- profullstack#131 resolves every federated host before connecting, so the profullstack#128
  directory salary tests pass allowPrivate like the other federation
  tests do.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 16f25cb into profullstack:master Sep 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants