Skip to content

parse url error in some format url #83

Closed as not planned
Closed as not planned

Description

@kshu1989

Initial checklist

Affected package

remark-gfm: 4.0.0

Steps to reproduce

original text: (https://example.com/foo/bar)。
wrong link: (https://example.com/foo/bar)。
Reason: url is not end with a ASCII,such as 。

Actual behavior

FM autolink literal’s trailing punctuation trimming rules do not account for the CJK full stop, resulting in incorrect URL boundary detection and consequently breaking the right-parenthesis exclusion logic.

Expected behavior

support more character set not only ASCII

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

No response

Activity

  1. added
    👋 phase/newPost is being triaged automatically
    🤞 phase/openPost is being triaged manually
    and removed
    👋 phase/newPost is being triaged automatically
    on Apr 20, 2026
  2. JounQin commented on Apr 20, 2026

    @JounQin
    Member

    remark-gfm follows GitHub's behavior, and as your reproduction, that's just how it works on GitHub. See also https://github.github.com/gfm/#extended-autolink-path-validation and github/cmark-gfm#377

  3. github-actions commented on Apr 20, 2026

    @github-actions
  4. added
    👎 phase/noPost cannot or will not be acted on
    and removed
    🤞 phase/openPost is being triaged manually
    on Apr 20, 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

    👎 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