Transform to Markdown inserts a line break in fig/title element

Post here questions and problems related to editing and publishing DITA content.
sweetsweetstefan
Posts: 6
Joined: Mon Jan 03, 2022 5:54 pm

Transform to Markdown inserts a line break in fig/title element

Post by sweetsweetstefan »

Hi there! I'm wondering if anyone else has experienced this behaviour, where a title beyond a certain length in a fig/title element gets a line break inserted when transforming to Markdown. It's inconvenient because I've selected "markdown_github" as the transtype, but most Markdown readers choke on the line break, and my image fails to load.

Here is the DITA in Oxygen:
2022-09-07_11-36-21.png
And here is the corresponding output, which fails to render properly:
2022-09-07_11-35-00.png
Is this expected behaviour? If I chop the title to about 170 characters, the Markdown comes out fine, but beyond that, it comes out like this.

Thanks!
You do not have the required permissions to view the files attached to this post.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Transform to Markdown inserts a line break in fig/title element

Post by Radu »

Hi,

I added a bug on the DITA OT plugin which handles the DITA to markdown publishing along with a possible fix suggestion:
https://github.com/jelovirt/org.lwdita/issues/114

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sweetsweetstefan
Posts: 6
Joined: Mon Jan 03, 2022 5:54 pm

Re: Transform to Markdown inserts a line break in fig/title element

Post by sweetsweetstefan »

Thank you, Radu!
Post Reply