Skip to content

autoCloseMarkdown appends two extra asterisks to Chinese text #493

Description

@Ziphyrien

Using comark preview commit 824e49a:

import { autoCloseMarkdown } from 'comark';

const input = '这是**中文。**后续文字';
console.log(autoCloseMarkdown(input, { syntax: false }));

Expected: 这是**中文。**后续文字

Actual: 这是**中文。**后续文字** — two extra asterisks appended.

Removing the leading 这是 produces the expected unchanged output: **中文。**后续文字.

Activity

  1. added a commit that references this issue on Oct 19, 2026
    ff13eb1
  2. added theissue type on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions