iamcco / iamcco/markdown-preview.nvim

两个星号之内有中文标点,加粗渲染失败

Open
#343 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

![image](https://user-images.githubusercontent.com/9500049/119381739-d9acfe00-bcf3-11eb-820d-9940d92788f8.png)

上图是一个md文件的渲染结果。对比第一行和第二行,第一行在星号之后多了个英文字符,导致加粗渲染失败。

当两个用来加粗的星号之内存在中文符号,且后续为一个英文字符或数字时可以复现。

**Expected behavior**

加粗渲染可以支持星号内存在标点符号。

**Desktop (please complete the following information):**
- OS: ManjaroLinux

例子:

```
**只剩下两张图片的一个例子:**a

**只剩下两张图片的一个例子:**

**试一试。**1
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.