Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code spans should escape inner opening curly braces #14

Open
Aldaviva opened this issue Mar 24, 2017 · 1 comment
Open

Code spans should escape inner opening curly braces #14

Aldaviva opened this issue Mar 24, 2017 · 1 comment

Comments

@Aldaviva
Copy link

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 Aldaviva changed the title Code spans should escape inner opening curly brances Code spans should escape inner opening curly braces Mar 24, 2017
@fidian
Copy link

fidian commented Jun 5, 2017

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

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

No branches or pull requests

2 participants