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

Fix string pass to marked #706

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix string pass to marked #706

wants to merge 1 commit into from

Conversation

Secbone
Copy link

@Secbone Secbone commented Jul 18, 2019

marked only accept string type, new String() will return an object [object String]

https://github.com/markedjs/marked/blob/f35c3e6d9a22980c9a5b61d33c394b4429914803/lib/marked.js#L1549-L1557

marked only accept string type, `new String()` will return an object `[object String]`
@@ -3957,7 +3957,7 @@
smartypants : true
};

markdownDoc = new String(markdownDoc);
markdownDoc = new String(markdownDoc).toString();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can add two spaces to align code.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already aligned in context, please check this line in the source file.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, you are right.

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

Successfully merging this pull request may close these issues.

2 participants