Skip to content

strong parse unexpected #70

Closed as not planned
Closed as not planned
@xiatian

Description

@xiatian

Initial checklist

Affected package

mdast-util-to-markdown^2.1.2

Steps to reproduce

<strong>mdast,</strong>nice work
import { toMarkdown } from 'mdast-util-to-markdown'

console.log(
  toMarkdown({
    type: 'root',
    children: [
      {
        type: 'strong',
        children: [
          {
            type: 'text',
            value: 'mdast,',
          },
        ],
      },
      {
        type: 'text',
        value: 'nice work',
      },
    ],
  }),
)

Actual behavior

**mdast,**&#x6E;ice work

Expected behavior

**mdast,**nice work

Runtime

node@22

Package manager

npm

Operating system

macOS 13.7.6

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙋 no/questionThis does not need any changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions