[Rendering] Issues with Bold/Italic syntax (Trailing spaces and CJK characters)

Operating system

Windows

Joplin version

3.5.11

Desktop version info

Joplin 3.5.11 (prod, win32)

设备:win32, 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
客户端 ID: db84af43ab244127883b604d8e6da59f
同步版本:3
配置档案版本:49
支持的密钥链:否
替代性实例 ID: -

修订:e75875c

Backup: 1.5.1
Freehand Drawing: 4.2.0
Github Alerts: 1.0.5
Paste as Markdown: 1.1.8
Resource Search Plugin: 0.1.2

Sync target

OneDrive

Editor

Markdown Editor

What issue do you have?

Hi everyone,

I really enjoy using Joplin, but I have noticed some inconsistent behavior with Bold and Italic rendering. It seems very sensitive to spaces and mixed-language typing.

Here are the two specific situations where the rendering fails:

1. Trailing Spaces

If there is a space before the closing asterisks, Joplin does not render the text as bold or italic.

  • Input: **This is supposed to be bold font **
  • Result: The text remains raw and is not bolded.

2. Adjacent CJK (Chinese) Characters

If I type Chinese characters immediately after the closing asterisks (without a space), the rendering fails.

  • Input: This is supposed to be bold font**这里应该是粗体
  • Result: The previous English text loses its bold formatting.

This is frustrating because it is easy to accidentally add a space or switch languages while typing, causing the preview to look wrong.

It happens on both Windows and Macos
Is there a setting to fix this, or is this a known limitation?

Thanks for your help!

Joplin follows the CommonMark specification.

I think in the first case, Joplin is correct:

About the second issue, I'm not certain. There seems to be some "intraword punctuation" in the specification:

**This is supposed to be bold font**这里应该是粗体 renders for me bold, though. In Markdown and rich text editor.

Thanks for your elaboration. I will try to live with this

Can you render the following bold font, when the closing asterisks are followed by CJK characters? **这里应该是粗体。**前面应该是粗体

The text being made bold should be closely surrounded by ** characters. This means that there should not be any space between the text being marked as bold and the opening or closing ** characters. So your text above does not show as bold.

However if you move the middle ** to the left of the space so that there is no gap between the text to be made bold and the closing ** characters it will mark the text as bold.

It is not being followed by CJK characters that is causing the problem. It is because the space character is in the wrong place.

2 Likes