-
Notifications
You must be signed in to change notification settings - Fork 9
Further refinements for Confluence specific HTML #9
Comments
some problems with
=> I will now add the |
How can we render the other admonitions like |
Added some conversion in respect to rdmueller#9 - extracted all asciidoc specific conversion into the "parseBody()" function - added conversion of code blocks to code macro - added conversion for admonitions TIP, CAUTION, NOTE, WARNING and IMPORTANT including their title into Confluence macro - removed unnecessary wrapping divs (.paragraph, .ulist, .sect3, .listingblock, .title) as these cause Confluence to omit the margin between the paragraphs
To be honest, I guess we have 2 options here:
Personally I'd vote for option 2 because I love asciidoc, but it's your choice and I know some colleagues who'd love to see option 1 and Markdown support. |
option 1 is IMHO currently the easier, option 2 the cleaner and better way. Can you give me more details about "I know some colleagues who'd love to see option 1 and Markdown support" - maybe in another issue? The arc42-template project already contains code for converting asciidoc output to markdown via pandoc, so this might be a simple task. |
I guess we should try merge https://github.com/gscheibel/asciidoctor-confluence and our project into one... |
As I said in the comment above, IMO this project has a different scope than gscheibel's version - and I personally like it. So, I'm definitely a bit biased when I say, I'd like to keep it as it is or move it into the direction of variant 1 mentioned above. The point is that the script is named asciidoc2confluence though it actually takes "Asciidoctor created HTML" as an input. An alternative input could be Markdown generated HTML, I'd say. |
OK. I do agree. Regarding the name - we could add the the asciidoctor conversion or rename it to "asciidocHtml2confluence" for the time beeing. But for me, that's not too important. For me, it is more important to clean up the interface a bit and maybe create an artifact which could be pushed to a maven repository for ease of use... |
There are some parts of the HTML that look very different in Confluence.
:toc:
with<p><ac:structured-macro ac:name="toc"/></p>
<ac:structured-macro ac:name="info"><ac:rich-text-body><p>${body}</p></ac:rich-text-body></ac:structured-macro>
<code>
with<ac:structured-macro ac:name="code"><ac:plain-text-body><![CDATA[${body}]]></ac:plain-text-body></ac:structured-macro>
Feedback welcome
The text was updated successfully, but these errors were encountered: