Skip to content

For inline images in ICML, Contents should be inside Properties #8675

@samatcolumn

Description

@samatcolumn

Explain the problem.
For context, see #8398

Right now when I convert an inline image from HTML to ICML I get something like this:

<Image Self="ue6" ItemTransform="1 0 0 1 -131.25 -56.25">
    <Properties>
      <Profile type="string">
          $ID/Embedded
      </Profile>
    </Properties>
    <Contents>
      <![CDATA[...]]>
    </Contents>
</Image>

Instead the <Contents> should be a child of ` rather than a sibling. Like this:

<Image Self="ue6" ItemTransform="1 0 0 1 -131.25 -56.25">
  <Properties>
    <Profile type="string">
      $ID/Embedded
    </Profile>
    <Contents>
      <![CDATA[...]]>
    </Contents>
  </Properties>
</Image>

I was able to confirm this by running a regex replace over the Pandoc output, at which point InDesign started giving me the desired output.

Pandoc version?
3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions