yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

When the last character of bolded text is a symbol and the first character immediately after it is a non-symbol, the bold display is abnormal. #1413

Open huangsijun17 opened 7 months ago

huangsijun17 commented 7 months ago

What's the problem

After bolding a string whose last character is a symbol, if the latter character is not a symbol, the additional test will display "**(xxxx)**" instead of (xxxx) being bolded.

What's the expected result

(xxxx)

How to reproduce

Input: **-**1 image

Other information

Markdown All in One v3.6.2 VS Code 版本: 1.88.0 (user setup) 提交: 5c3e652f63e798a5ac2f31ffd0d863669328dc4c 日期: 2024-04-03T13:26:18.741Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631

yzhang-gh commented 7 months ago

Thanks for the feedback. This is because of the Markdown syntax. You can see it is the same either in the online demo or here on GitHub

**-**1

-1