Live Preview bold text display issues

Steps to reproduce


When there are punctuation marks before and after a bolded symbol, it does not render properly as bolded in edit mode.

This phenomenon often occurs in AI-generated text


Did you follow the troubleshooting guide? [Y/N]


yes. The vault started in restricted mode, no snippets and default theme



This is what it looks like in edit mode:

This is what it looks like in source mode:

This is what it looks like in reading mode:


Hi.

The Commonmark dingus seems to suggest that that is expected in a preview environment. Interested to see what the Obsidian team say.

Could you please paste your example text here in a code block so we can test it?

  • 企业存款增加:企业拿到了银行贷款,或者收回了账款,但由于对未来市场预期不明朗,不敢轻易投资扩大生产。这些钱就趴在企业的活期或定期账户上,形成了**" 资金沉淀 "**。

code block?

* **企业存款增加**:企业拿到了银行贷款,或者收回了账款,但由于对未来市场预期不明朗,不敢轻易投资扩大生产。这些钱就趴在企业的活期或定期账户上,形成了**" 资金沉淀 "**。

It looks like Editing View is displaying this correctly and Reading View is not. According to the specification that Obsidian’s Markdown is based on, “This is not emphasis, because the opening * is preceded by an alphanumeric and followed by punctuation”. (The reasoning behind that is a little complicated.)

I tested this text in a Markdown note plugin within a small software application (uTools), and it displayed perfectly fine there without any issues. I believe a software as excellent as Obsidian shouldn’t have similar problems.

Note: This is in editing mode.

According to commonmark, **" 资金沉淀 "**。 should not be bold. So the editor is correct and the reader is not.

There are some bugs, in both editor and reading mode, with respect to handling of markers that are summarized here:

However, I want to reiterate that what you are asking is not what the spec dictates. In fact, a long time ago open this FR

1 Like