Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using two **enclosed bold texts containing colons, react-markdown fails to correctly parse the bold syntax. #824

Closed
4 tasks done
luichooy opened this issue Apr 1, 2024 · 3 comments
Labels
🤞 phase/open Post is being triaged manually

Comments

@luichooy
Copy link

luichooy commented Apr 1, 2024

Initial checklist

Affected packages and versions

react-markdown@9.0.0

Link to runnable example

No response

Steps to reproduce

  1. open the react-markdown example url or micromark example url to observe the output

Expected behavior

<p><strong>人工智能的潜在好处</strong></p>
<ul>
<li><strong>提高生产力:</strong>人工智能可以自动化任务,解放人类劳动力专注于更有创造性和战略性的工作。</li>
<li><strong>hello:</strong>人工智能可以分析大量数据,识别模式并提供基于数据的见解,从而帮助人们做出更好的决策。</li>
<li><strong>hello:</strong>人工智能可以定制产品和服务,以满足个人的需求和偏好。</li>
<li><strong>world</strong>人工智能可以帮助诊断疾病,开发新疗法,并改善患者护理。</li>
<li><strong>hello world</strong>人工智能可以处理大量数据,发现人类可能无法自行发现的模式和见解。</li>
</ul>

Actual behavior

<p><strong>人工智能的潜在好处</strong></p>
<ul>
<li>**提高生产力:**人工智能可以自动化任务,解放人类劳动力专注于更有创造性和战略性的工作。</li>
<li>**hello:**人工智能可以分析大量数据,识别模式并提供基于数据的见解,从而帮助人们做出更好的决策。</li>
<li>**hello:**人工智能可以定制产品和服务,以满足个人的需求和偏好。</li>
<li><strong>world</strong>人工智能可以帮助诊断疾病,开发新疗法,并改善患者护理。</li>
<li><strong>hello world</strong>人工智能可以处理大量数据,发现人类可能无法自行发现的模式和见解。</li>
</ul>

Runtime

Node v17

Package manager

pnpm

OS

Windows, macOS

Build and bundle tools

Webpack, Create React App

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Apr 1, 2024
@ChristianMurphy
Copy link
Member

Duplicate of micromark/micromark#41

@ChristianMurphy ChristianMurphy marked this as a duplicate of micromark/micromark#41 Apr 1, 2024
@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
Copy link

github-actions bot commented Apr 1, 2024

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

@ChristianMurphy
Copy link
Member

To copy over the response there for clarity here:

your "incorrect" example is what CommonMark does too. We follow CM, so this is not an issue in micromark but one in CM.

commonmark/commonmark-spec#650 seems to be the issue, and also commonmark/commonmark-spec#488 might be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤞 phase/open Post is being triaged manually
Development

No branches or pull requests

2 participants