-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Parser fix #977
Parser fix #977
Conversation
Test 39 fails with this pull merged onto the current master 18deb8b:
It looks to me that the new output is correct, because marked shouldn't eat the '<'. Let's hear @UziTech and @matt- since they took care of that XSS issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @Feder1co5oave
The first line in \test\tests\mangle_xss.sanatize.nomangle.html
should be
<p><<a href="mailto:svg/onload="alert(1)"//@x">svg/onload="alert(1)"//@x</a></p>
@KostyaTretyak could you rebase with master and change that line so the tests pass?
README.md
Outdated
@@ -3,14 +3,20 @@ | |||
> A full-featured markdown parser and compiler, written in JavaScript. Built | |||
> for speed. | |||
|
|||
[![NPM version](https://badge.fury.io/js/marked.png)][badge] | |||
[![NPM version](https://badge.fury.io/js/marked.svg)][badge] | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I do not understand why this and other changes are shown, since at the moment it already exists in the master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably rebased (wrong?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you rebased onto 43fc870
instead of the latest commit.
Make sure you fetch the latest chjj/master branch before rebasing on it.
Related to #814
Done. |
LGTM! |
ps. Having issues with the bench script, just me? |
What kind?
|
Oh, it exited with code 1. Not sure why
Il 05 gen 2018 4:24 AM, "Josh Bruce" <[email protected]> ha scritto:
… npm run bench per package.json
[image: screen shot 2018-01-04 at 10 24 07 pm]
<https://user-images.githubusercontent.com/15252830/34594266-050692ca-f19e-11e7-8f54-6632e00c3550.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#977 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AByGhHA0riVyUm3-ctBSr5dykoH6sqNVks5tHZX6gaJpZM4RLnZG>
.
|
Yep. Definitely weird. Also curious why your benches are almost 10 seconds longer than mine...really want to establish some type of baseline expectation - otherwise, why even measure it. ;) |
Because I'm working on a steaming hot Celeron-powered machine, of course :b
|
Celeron!? I haven't heard the processor name since I worked at Office Depot's tech. department in like 2001. In fact, I think the first computer I ever bought myself was a 500mhz Celeron HP mini-tower. Oh de memories. ::tear:: |
Oh it's not that old, it's a 1.1GHZ Celeron M on a netbook. Just gives it a
little advantage over any Atom.
|
Issue with |
It is because the When running We could just add |
Thx @UziTech |
For now, parser not properly parsing this markdown:
Thanks to @thisgeek and #814, I've finalized this issue. This PR may also be included in the release #976