marked icon indicating copy to clipboard operation
marked copied to clipboard

IOS版本冲突问题

Open Wsg1234 opened this issue 5 months ago • 3 comments
trafficstars

Marked version: "marked": "^15.0.12", IOS:15.2

Describe the bug "t.at is not a function. (In 't.at(-1)','t.at'is undefined)\nPlease report this to https://github.com/markedis/marked.

Wsg1234 avatar May 30 '25 01:05 Wsg1234

Can you provide a minimal repo or a way for us to test this?

UziTech avatar May 30 '25 01:05 UziTech

Can you provide a minimal repo or a way for us to test this?

Hello, we are also facing the same problem

Image

"marked": "^15.0.8", Client: iPhone, iOS 14.0 UA: Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X9 AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

we also find same problem in Android low version system

this is a demo: https://dev-api.iflybuds.com/mdview/markdowndemo you can test it, please fix it

wanqingrongruo avatar Jun 05 '25 03:06 wanqingrongruo

Seems like the browsers version does not support array.at

You can transpile marked with babel if you need to support old browsers

UziTech avatar Jun 05 '25 03:06 UziTech