RT#7708: Bug: MD line-break issues in Oriental languages

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1993
Joined: Sat Sep 11, 2021 5:04 am

RT#7708: Bug: MD line-break issues in Oriental languages

Post by rakunavi »

Hello all,

When attempting to convert Markdown files written in languages like Japanese to PDF, I noticed that lines sometimes wrap at unnatural positions (Case 1) or fail to wrap at all (Case 2).

Case 1: Line breaks occurring at unnatural positions

For the first verification, I created files for each of the three languages, both with and without a BOM. Additionally, I saved the files with different extensions—one for Markdown and one for plain text—while keeping the file content identical. Therefore, the attached files consist of a total of 12 files.

  • SampleFiles_1.zip
In the first verification video, I first drag and drop the Markdown file into PDF-XChange Editor to convert it to PDF, then perform the same conversion for the text file. Please note that line breaks occur at odd positions only when converting the Japanese and Chinese Markdown files. The verification was performed using files saved in the “UTF-8 without BOM” folder that included BOM. However, the results would be the same even if verified using files without BOM.

  • figure_1.png

    Animation.gif

Case 2: Line breaks not occurring at all

In the second verification, only a portion of a paragraph was extracted from the original Japanese file with BOM. This same file was then saved with separate filenames for Markdown and Text formats. As in the first verification, these files were converted into PDF files. In the first paragraph, please note that no wrapping of lines has been performed, as shown in the figure below.

  • SampleFiles_2.zip
  • figure_2.png

    Animation2.gif

Notes

The sample files listed above are all plain text files that do not contain any Markdown-specific syntax. However, I have confirmed that the same issue occurs even with files written in Markdown syntax. To isolate the cause, I deliberately performed the verification using simple text. Also, as always, I performed the above verifications after resetting all settings to their defaults.

Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.8.1 build 406
- OS Version: Windows 11 Pro / Home 25H2 Build 26200.7462
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL

[EDIT] Since a ticket has been officially issued for this matter, I have changed the topic title as follows. 2025-12-23 7:41 JST (UTC+9)
  • Previous Title: When converting Markdown in languages like Japanese to PDF, line breaks may occur at odd positions or not occur at all
  • New Title: RT#7708: Bug: MD line-break issues in Oriental languages
You do not have the required permissions to view the files attached to this post.
Last edited by rakunavi on Mon Dec 22, 2025 10:41 pm, edited 1 time in total.
Top needs for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FullScrnMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12157
Joined: Wed Jan 03, 2018 6:52 pm

Re: When converting Markdown in languages like Japanese to PDF, line breaks may occur at odd positions or not occur at a

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you as always for the detailed breakdown of the issue. I have passed this up the chain to our Dev team for review. When I head back from them, I will let you know, but I expect a ticket will be made in time for this case.

RT#7708: Bug: MD line-break issues in Oriental languages

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
rakunavi
User
Posts: 1993
Joined: Sat Sep 11, 2021 5:04 am

Re: RT#7708: Bug: MD line-break issues in Oriental languages

Post by rakunavi »

Thank you, Daniel, for creating the ticket!

Thank you for taking time out of your busy schedule.
Please give my best regards to developers.

Best regards,
rakunavi
Top needs for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FullScrnMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12157
Joined: Wed Jan 03, 2018 6:52 pm

RT#7708: Bug: MD line-break issues in Oriental languages

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com