asciidoctor / asciidoctor-confluence

Push Asciidoctor file to Confluence
https://rubygems.org/gems/asciidoctor-confluence
MIT License
82 stars 28 forks source link

upload images with no slash in their path (inc. diagrams) as attachments #9

Closed yazgoo closed 8 years ago

yazgoo commented 8 years ago

This should help with #6 Current limitation: this cannot update an image, you have to rename it if you want this to work.

Tested with

[ditaa]
[plantuml]
image::path.png[Description]
image::path.jpg[Description]
Kabhal commented 8 years ago

I guess you could relax the "no slash only" requirement to "relative path only" requirement, because relative links from the page URL in Confluence are probably a nonsense. So that only fully qualified URLs won't be uploaded.

This way images uploading will work even if my images are stored in my img/ directory :) What do you think ?