Skip to content

fix: escape curly braces in codespans to prevent Confluence macro expansion - #17

Open
Saltysth wants to merge 1 commit into
Shogobg:masterfrom
Saltysth:fix/escape-curly-braces-in-codespan
Open

Saltysth wants to merge 1 commit into
Shogobg:masterfrom
Saltysth:fix/escape-curly-braces-in-codespan

Conversation

@Saltysth

Copy link
Copy Markdown

Problem

Confluence interprets { and } as macro delimiters even inside {{...}}
inline code blocks. Text like a REST path containing {systemId} renders as
an "Unknown macro" error instead of literal characters.

Solution

Escape { and } with a backslash inside codespans. Already-escaped braces
are left untouched to avoid double escaping.

Test plan

  • All 35 existing tests pass
  • Added tests: literal braces in codespan, braces in REST paths, no double escaping

…ansion

Confluence treats { and } as macro delimiters even inside {{...}} inline
code, producing "Unknown macro" errors for text like REST paths
containing {systemId}. Escape them with a backslash and keep
already-escaped braces untouched.
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.

1 participant