All things after svg diagram is not interpreted in the html read by the web browser

0 votes
asked Jan 20, 2017 in To be sorted by anonymous
edited Jan 20, 2017
I have no problem at all when I generate png output.
 
On the other hand, when I generate svg output with the following asciidoc file:
 
 // -*- adoc -*-
My document title
=============
//Langue du document
:lang: fr
//Autheur du document
:author: Bob
 
Stuff before PLANTUML
 
[plantuml, outputs/schema-recapitulatif-1, pngsvg]
-------------
node "Legend" {
[Basic component]
(Graphic component)
}
-------------
 
Stuff after PLANTUML
 
all stuff after is present is the generated html but is not interpreted by the web browser:
 
source html is :
<div id="content">
         <div id="preamble">
            <div class="sectionbody">
               <div class="paragraph">
                  <p>Stuff before PLANTUML</p>
               </div>
               <div class="imageblock">
                  <div class="content">
                     <object data="outputs/schema-recapitulatif-1" type="image/svg+xml" />
                  </div>
               </div>
               <div class="paragraph">
                  <p>Stuff after PLANTUML</p>
               </div>
            </div>
         </div>
      </div>
whereas interpreted html is:
 
<div id="content">
   <div id="preamble">
      <div class="sectionbody">
         <div class="paragraph">
            <p>Stuff before PLANTUML</p>
         </div>
         <div class="imageblock">
            <div class="content">
               <object data="outputs/schema-recapitulatif-1" type="image/svg+xml">
                  <div class="paragraph">
                     <p>Stuff after PLANTUML</p>
                  </div>
                  <div id="footer">
                     <div id="footer-text">
                        Dernière mise à jour 2017-01-20 12:09:14 CET
                     </div>
                  </div>
               </object>
            </div>
         </div>
      </div>
   </div>
</div>
As you can see the "Stuff after PLANTUML" paragraph is included into object tag and make it hidden in rendered view.
 

1 Answer

0 votes
answered Jan 20, 2017 by anonymous
I finally found a workaround modifying the ~/.asciidoc/filters/plantuml/plantuml-filter.conf :

The original one uses an autoclosing object markup :

<object data="{imagesdir=}{imagesdir?/}{target}" type="image/svg+xml" />

I just modified it :

<object data="{imagesdir=}{imagesdir?/}{target}" type="image/svg+xml" ></output>

and it works !

Note: I am using xthml11 backend (html5 totally crashes)
commented Jan 20, 2017 by plantuml (295,000 points)
Great, thanks for the feedback.
Could you tell us where you've downloaded the plantuml plugin from ?
So that we could push your patch to the author.
Thanks!
commented Jan 20, 2017 by anonymous
I went to page:

https://code.google.com/archive/p/asciidoc-plantuml/downloads

The only link which is proposed is:

https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/asciidoc-plantuml/plantuml.zip

BTW, the jar included into it is no more up-to-date. I've downloaded the plantuml.jar directly from http://plantuml.com/download (latest release)


And I've just seen there is a github repository: https://github.com/stasberkov/asciidoc-plantuml

Is this the official one?
...