Skip to content

XMarkdown: update marked to fix parsing bugs wrt strike-through #2000

Description

@tommie-lie

The following text renders as strikethrough in XMarkdown:

<XMarkdown content={"~123 foo bar (~123)"} streaming={{ enableAnimation: true }} />
Image

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:

Image

Please consider updating the marked dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions