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 is undefined Please report this to https://github.com/chjj/marked #927

Closed
dagostinelli opened this issue Aug 19, 2017 · 3 comments · Fixed by #682
Closed
Labels
help wanted RR - refactor & re-engineer Results in an improvement to developers using Marked, or end-users, or both.

Comments

@dagostinelli
Copy link

OK -- I'm reporting it.

I'm calling this: var rawMarkup = marked(this.props.some_text, {sanitize: true});

In some cases, some_text is undefined. I put a null check now, but maybe it shouldn't crash? I don't know.

@MikeCastillo1
Copy link

MikeCastillo1 commented Oct 27, 2017

I have the same problem here:

I get data from firestore:
<markdown [data]=" (story | async)?.story ">

the text is only = HelloWorld

@joshbruce joshbruce added help wanted RR - refactor & re-engineer Results in an improvement to developers using Marked, or end-users, or both. labels Dec 1, 2017
@Feder1co5oave
Copy link
Contributor

Solved by #682

@joshbruce
Copy link
Member

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted RR - refactor & re-engineer Results in an improvement to developers using Marked, or end-users, or both.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants