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

TypeError: src.replace is not a function #1705

Closed
dwilches opened this issue Jun 12, 2020 · 4 comments
Closed

TypeError: src.replace is not a function #1705

dwilches opened this issue Jun 12, 2020 · 4 comments

Comments

@dwilches
Copy link

Describe the bug

When used marked I got this error message:

image

To Reproduce
I'm using the same code in other places and the error doesn't reproduce, even with the same input, so, I don't know how to reproduce it sorry. I hope the stack trace gives you enough information.

Expected behavior
The visual effect is the expected one, so the only unexpected thing is this error popping up in the console.

@UziTech
Copy link
Member

UziTech commented Jun 12, 2020

What version of marked are you using?

@dwilches
Copy link
Author

Doh, sorry for making this issue. I found out we have pinned marked at this commit: 1c188eb

Which is 4 years old. I guess this issue should be fixed by now?

@UziTech
Copy link
Member

UziTech commented Jun 12, 2020

most likely. Try to update marked and see if the issue still exists. There has been quite a bit that has changed in the last 4 years so if you are extending marked in any way and need help upgrading the code to be compatible with newer versions feel free to ask.

@dwilches
Copy link
Author

Sure. I'll close the issue now, it will take a time upgrading it and checking everything works.
Thanks.

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