Skip to content

MD in DITA line break after image #4501

Answered by raducoravu
sta1ewar asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the DITA content generated from the Markdown content by the DITA OT when publishing, it looks like this, it does not have a placement=break attribute:

    <image class="- topic/image " href="..my.jpg"
        xtrf=".."
        xtrc="image:1;12:9" dita-ot:image-width="249" dita-ot:image-height="171"
        dita-ot:horizontal-dpi="150" dita-ot:vertical-dpi="150">
        <alt class="- topic/alt "
            xtrf=".."
            xtrc="alt:1;12:9">washing the car</alt>
    </image>

Then looking at the XSLT template which processes the DITA XML image:
DITA-OT/plugins/org.dita.html5/xsl/topic.xsl

<xsl:template match="*[contains(@class, ' topic/image ')]" name="topic.image">

it h…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sta1ewar
Comment options

Answer selected by sta1ewar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants