You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Any def string in code block prevents block detection #1006
I think we need to revert and review #974 as soon as possible. I don't recall how that could have slipped my checking.
This can be quite tricky since we changed the whole test system, so expect to manually resolve some conflicts.
All right, I'm gonna just hold off until we answer a couple of things:
This issue is unrelated to the commits being reverted (a new issue).
Fixing this is something we should correct before performing the 0.3.10 release, which includes Declare undeclared variables #991, which is related to the highest priority XSS-related defects.
Yes it is correlated, because regexp are built via a cascade of replaces. By changing the blockquote regexp, the paragraph one is now changed too, and it breaks
`
def`
into two separate paragraphs, so that the code inline rule cannot parse correctly the item.
I'm working around this issue. Still, my recent review of your #974 is still very valid and we need to take a look at the blockquote rule too, which is one of the most complicated ones, alas.
However, in two of your three comments, you were wrong with the rules. Now we know that my test edits were correct, but I was incorrect when I deleted rule with blockquote from marked.js.
Activity
Feder1co5oave commentedon Jan 8, 2018
I think we need to revert and review #974 as soon as possible. I don't recall how that could have slipped my checking.
This can be quite tricky since we changed the whole test system, so expect to manually resolve some conflicts.
KostyaTretyak commentedon Jan 8, 2018
Agree, we should to revert 98ac7a4 and a477d1d commits. They are incorrect.
joshbruce commentedon Jan 8, 2018
@Feder1co5oave and @KostyaTretyak: Agreed.
I know of three ways to do that - and seem to only be able to do one of them myself. (Note: Believe it or not, I've never had to do a reversion.)
KostyaTretyak commentedon Jan 8, 2018
@joshbruce, please do the following via terminal from root the project:
It should go through without problems. And now I will pull request for revert
98ac7a4.Feder1co5oave commentedon Jan 8, 2018
@KostyaTretyak can you not open a PR to revert both commits? That would be neater.
KostyaTretyak commentedon Jan 8, 2018
Well, I fixed my mistake, but now you need to fix the tests.
KostyaTretyak commentedon Jan 8, 2018
Interestingly, CommonMark Spec have such a rule, but it seems that in our case it does not work for some reason (see tab HTML and
[1]: fooat bottom).Output:
KostyaTretyak commentedon Jan 8, 2018
And this is not works too
Output:
Feder1co5oave commentedon Jan 8, 2018
It's because link definitions cannot interrupt a paragraph.
Feder1co5oave commentedon Jan 8, 2018
WAIT
I cannot reproduce the issue reported by @rndstr
Guys, this is about codeblocks, #974 was about blockquotes, very different beasts.
Feder1co5oave commentedon Jan 8, 2018
Whereas this is a problem:
Feder1co5oave commentedon Jan 8, 2018
Looks like this is a problem with the
paragraphblock rule.joshbruce commentedon Jan 8, 2018
All right, I'm gonna just hold off until we answer a couple of things:
KostyaTretyak commentedon Jan 8, 2018
This issue is unexpected related to #1007.
Feder1co5oave commentedon Jan 8, 2018
Yes it is correlated, because regexp are built via a cascade of replaces. By changing the
blockquoteregexp, theparagraphone is now changed too, and it breaksinto two separate paragraphs, so that the
codeinline rule cannot parse correctly the item.I'm working around this issue. Still, my recent review of your #974 is still very valid and we need to take a look at the
blockquoterule too, which is one of the most complicated ones, alas.KostyaTretyak commentedon Jan 8, 2018
Agree. I did #974 when I studied
markedjust a couple of days.KostyaTretyak commentedon Jan 8, 2018
However, in two of your three comments, you were wrong with the rules. Now we know that my test edits were correct, but I was incorrect when I deleted rule with blockquote from
marked.js.rndstr commentedon Jan 9, 2018
Okay, so #1007 and 0.3.12 brought this back to the pre-0.3.9 behaviour. Thanks for the quick release!
Not sure I follow your discussion, feel free to close this (and re-open whatever #974 was meant to fix).
joshbruce commentedon Jan 9, 2018
@rndstr: Thanks for the information. Gonna go ahead and close this per your comment.
Think we've completed all the issues related to XSS vulnerabilities; so, we can get to the other parser issues.