I've been working with FM to DITA conversion for a day or so. It's going very well, but this issue has me stumped.
The Frame doc has an "s,step" paragraph format for numbered instruction steps. In some of these paragraphs there is a figure anchor.
The DITA output is a task structure, with the content of the s,step contained in a cmd element. But the image element appears immediately after the cmd element inside the step element, which is not valid DITA.
I've tried:
[DITAOptions]
ImageParents = $iparents
[DITAElementSets]
$iparents = cmd p
But it has no effect. Is there something obvious I'm missing here?
The log says drmif is m208a and dwhtm is h291g.
Image placement
As mentioned in our email, the problem isn't parents, it's that the image isn't capable of being put inline. So it cannot be put in the same para as the anchor. One fix is to add:
[GraphStartMacros]
imageid=<info>
[GraphEndMacros]
imageid=</info>
for each image that wound up in the step element.
But since DITA is usually a one-shot conversion, it would be just as easy, maybe easier, to do that as a search/replace post-process in the DITA files. Look for . If you know regex, this is an easy sed or awk task.