Skip to content

Escape square brackets in source URL titles#326

Merged
don-vip merged 1 commit intomasterfrom
fix/escape-source-url
Mar 6, 2026
Merged

Escape square brackets in source URL titles#326
don-vip merged 1 commit intomasterfrom
fix/escape-source-url

Conversation

@Amdrel
Copy link
Collaborator

@Amdrel Amdrel commented Mar 6, 2026

Description

Resolves #229

This patch maps square brackets to HTML entities in the wikitext escape function. This should fix the issue with source URL titles breaking links, and in other places using titles and descriptions as well.

Changes

  • Map [ to [ and ] to ] in escape_wikitext

@Amdrel Amdrel requested a review from don-vip March 6, 2026 19:17
@don-vip don-vip merged commit cd65536 into master Mar 6, 2026
5 checks passed
@don-vip don-vip deleted the fix/escape-source-url branch March 6, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

] characters in the source link need to be escaped

2 participants