qwazer / markdown-confluence-gradle-plugin

Gradle plugin to publish markdown pages to confluence
Apache License 2.0
12 stars 16 forks source link

Special characters (specifically {}) break publish #12

Open darrickc opened 6 years ago

darrickc commented 6 years ago

If you have curly braces in your markdown confluence thinks it's a macro and fails the publish. The plugin should escape curly braces so confluence accepts them without doing a macro lookup.

For example this markdown fails

Should be equivalent to configurations.all { transitive = false }.

I think you're aware of this (I noticed some tests with macros to test failure cases).

qwazer commented 6 years ago

Thanks for reporting. Currently I'm not user of own plugin (we switched to maven, :cry: ) , so I don't plan to invest many time to enhance it. But If you'll send PR I'll be glad to merge and publish new version.

qwazer commented 6 years ago

Moreover, sometimes it's not possible to distinguish desired macro from undesired automatically. For example {toc} is valid macro. If your want to insert it as not macro, use {toc} in your markdown file (surround with backquote char) I suppose it's better to add as limitation to readme.md and close issue.