Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
samatcolumn opened this issue Mar 7, 2023 · 2 comments
Closed

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

samatcolumn opened this issue Mar 7, 2023 · 2 comments
Labels

Comments

@samatcolumn
Copy link

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

@samatcolumn samatcolumn added the bug label Mar 7, 2023
@jgm
Copy link
Owner

jgm commented Mar 8, 2023

Sorry, I should have gotten this right the first time. Will fix.

@jgm jgm closed this as completed in dd50fef Mar 8, 2023
@samatcolumn
Copy link
Author

@jgm fixed in under 2 hours? You are a legend, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants