syntax-tree / mdast-util-gfm-autolink-literal

mdast extension to parse and serialize GFM autolink literals
https://unifiedjs.com
MIT License
8 stars 6 forks source link

Incompatibility with new regular expression syntax in older Safari versions causes blank page #11

Closed myfjdthink closed 3 weeks ago

myfjdthink commented 3 weeks ago

Initial checklist

Affected packages and versions

2.0.1

Link to runnable example

No response

Steps to reproduce

Use the mdast-util-gfm-autolink-literal package in your project.

Run the project in an older version of the Safari(<16.3) browser.

like: https://github.com/nuxt/nuxt/issues/26393

Expected behavior

The regular expression should work correctly, allowing the page to render without issues.

Actual behavior

In older versions of the Safari browser, the regular expression is not supported, leading to a blank page (white screen).

Affected runtime and version

node@18.2

Affected package manager and version

yarn

Affected OS and version

Safari 15.7

Build and bundle tools

No response

myfjdthink commented 3 weeks ago

image test in safari console

myfjdthink commented 3 weeks ago

https://github.com/syntax-tree/mdast-util-gfm-autolink-literal/blame/182000e93a49c259d362e6d3f474b13d35b6472d/lib/index.js#L135

wooorm commented 3 weeks ago

Duplicate of #10

github-actions[bot] commented 3 weeks 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 weeks 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