Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Jan 19, 2026

Shortcodes followed by a trailing dash (e.g., {{< version >}}-) were being rendered as hex-encoded strings:

b58fc729-690b-4000-b19f-365a4093b2ff-7B7B3C2076657273696F6E203E7D7D–

Root Cause

PR #13792 introduced a two-stage transformation that encodes shortcodes as UUID-HEX- to safely pass through Pandoc's markdown parser. When a user writes {{< version >}}-, the encoded form becomes UUID-HEX--. Pandoc's +smart extension converts -- to an en-dash , breaking the decode pattern match.

Fix

Changed the delimiter from - to ; in the UUID-HEX encoding format. Semicolons have no markdown meaning and are not affected by smart typography.

Fixes #13913

@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Jan 19, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv cderv requested a review from cscheid January 19, 2026 16:00
@cderv
Copy link
Collaborator Author

cderv commented Jan 19, 2026

@cscheid Just asking you for review to confirm this small change of delimiters does not change your initial fix in #13792

cderv added 4 commits January 21, 2026 15:57
…sue (#13913)

Shortcodes followed by a trailing dash were being hex-encoded in output
because Pandoc's +smart extension converts -- to en-dash, breaking the
UUID pattern match during decode.

Changed the delimiter from - to ; in the UUID-HEX encoding format to
prevent this collision with smart typography.
@cderv cderv merged commit 7c6cd4e into main Jan 21, 2026
51 checks passed
@cderv cderv deleted the fix/issue-13913 branch January 21, 2026 15:22
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.

Strange number in documentation

3 participants