markdown2confluence
markdown2confluence copied to clipboard
Code spans should escape inner opening curly braces
| 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}
}}
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