Skip to content

HTML coverter creates wrong relative image url #109

@kreutzr

Description

@kreutzr

Hi

I am using asciidoctorj-pdf V2.3.19 to render a manual from ADOC to PDF and HTML.
The manual starts as follows:

= ResponseDiff - Version 0.13.1-SNAPSHOT
:encoding: utf-8
:lang: de
:toc: left
:toclevels: 5

image::img/responsediff-logo_320x160.png[ResponseDiff]

== What is ResponseDiff?
...

While the resulting PDF shows the logo as intended, the HTML result holds a broken link "**doc/img/**img/responsediff-logo_320x160.png" instead of "img/responsediff-logo_320x160.png".
Here is the relevant HTML section.

...
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="imageblock">
<div class="content">
<img src="doc/img/img/responsediff-logo_320x160.png" alt="ResponseDiff">
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_what_is_responsediff">What is ResponseDiff?</h2>
<div class="sectionbody">
...

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions