XMarkdown: update marked to fix parsing bugs wrt strike-through
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.2k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 2
Description
The following text renders as strikethrough in XMarkdown:
```
```
This is an issue that was fixed in newer versions of marked. I can use a package override to marked 18 to fix it:
```
package.json:
{
"overrides": {
"@ant-design/x-markdown": {
"marked": "18.0.7"
}
},
}
```
Just this update results in:
Please consider updating the marked dependency.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with package.json and the @ant-design/x-markdown dependency on marked. Reproduce the XMarkdown example containing "~123 foo bar (~123)" and compare its rendering before and after the marked update; done means the text no longer renders as strikethrough.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100