markdown2confluence icon indicating copy to clipboard operation
markdown2confluence copied to clipboard

Code spans should escape inner opening curly braces

Open Aldaviva opened this issue 8 years ago • 1 comments

Markdown input Expected Confluence output Actual Confluence output
`{hello} {world}` {{\{hello} \{world}}} {{{hello} {world}}}

When the input Markdown contains { in a code span, the text is wrapped in {{ }}, but Confluence also expects the inner { to be escaped with \. This produces a warning when inserted into Confluence:

{{
Unknown macro: {hello}
Unknown macro: {world}
}}

Aldaviva avatar Mar 24 '17 01:03 Aldaviva

An alternate way that works is to swap { and } with { and }.

I'm not sure if this library will adopt the fixes I've made, but I've forked this library and it now certainly handles braces. https://github.com/connected-world-services/markdown2confluence-cws

fidian avatar Jun 05 '17 12:06 fidian