Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded - for content with emojis #2220

Closed
rj-david opened this issue Oct 4, 2021 · 1 comment
Closed

Comments

@rj-david
Copy link

rj-david commented Oct 4, 2021

Marked version:
"marked": "^2.0.5"

Depended by this package: https://github.com/tcort/markdown-link-extractor

Describe the bug
Getting an error for content with emojis: RangeError: Maximum call stack size exceeded

To Reproduce
Steps to reproduce the behavior:

We are using the package markdown-link-extractor for the following sample content to extract links and the RangeError is thrown by marked

Hi, Patrick! 👋
Did you hear that group activities like posting a discussion in a group can earn you 10x credits than the regular offer? Learn more about the special offers to look forward to this 10.10 Promo, from October 10 to 13 only!

Check the topic: **[📣 Promo Catalog & Many Ways to Earn Bigger Credits this 10.10 Promo!](https://1pt.ee/c/ea2c93)**

Stack trace

RangeError: Maximum call stack size exceeded\nPlease report this to https://github.com/markedjs/marked.\n    at String.match (<anonymous>)\n    at Tokenizer.link (/home/bountee/bundle/programs/server/npm/node_modules/markdown-link-extractor/index.js:14:31)\n    at Tokenizer.tokenizer.<computed> (/home/bountee/bundle/programs/server/npm/node_modules/marked/src/marked.js:165:45)\n    at Tokenizer.tokenizer.<computed> (/home/bountee/bundle/programs/server/npm/node_modules/marked/src/marked.js:167:31)\n    at Tokenizer.tokenizer.<computed> 

Expected behavior
No error

@UziTech
Copy link
Member

UziTech commented Oct 4, 2021

This seems to be an issue in https://github.com/tcort/markdown-link-extractor.

It works fine in marked: demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants