remarkjs / remark-gfm

remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)
https://remark.js.org
MIT License
725 stars 25 forks source link

iPad Invalid regular expression: invalid group specifier name #70

Closed farzadso closed 3 hours ago

farzadso commented 3 hours ago

Initial checklist

Affected packages and versions

react-gfm -> 4.0.0

Link to runnable example

https://codesandbox.io/p/devbox/sparkling-rgb-rlzl7c

Steps to reproduce

The page no longer loads on an iPad when you add the remark-gfm plugin to react-markdown.

It only happens on iPads

CleanShot 2024-10-11 at 20 33 51

Expected behavior

It should render with a fallback.

Actual behavior

This is the error message it throws:

SyntaxError: Invalid regular expression: invalid group specifier name

You can test it by loading this link in an iPad:

https://r7y53f-5173.csb.app/

More logs:

CleanShot 2024-10-11 at 20 39 27

Affected runtime and version

node@20+

Affected package manager and version

npm, yarn and pnpm are the same

Affected OS and version

iPad OS < 17

Build and bundle tools

No response

ChristianMurphy commented 3 hours ago

Duplicate of https://github.com/syntax-tree/mdast-util-gfm-autolink-literal/issues/10

github-actions[bot] commented 3 hours ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

github-actions[bot] commented 3 hours ago

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks, — bb