Uh oh!
There was an error while loading. Please reload this page.
Conversation
ghost
commented
Mar 18, 2019
ran wrong test command |
Wait, is it expecting a bug to be there? If it is, I seemed to have fixed it. |
UziTech
commented
Mar 18, 2019
Ya the spec tests that are currently failing will fail if they start passing. You will need to remove It looks like you are also failing some tests that used to pass. |
UziTech
commented
Mar 18, 2019
The |
ghost
commented
Mar 21, 2019
ok I figured out why they are different. It was to prevent it from being interpreted as an ordered List. Also the underscore group has a bug: https://marked.js.org/demo/?text=_%3Cimg%20src%3D%22https%3A%2F%2Fwww.google.com%2Ffavicon.ico%22%20title%3D%22*_%22%2F%3E%0A%0A*%3Cimg%20src%3D%22https%3A%2F%2Fwww.google.com%2Ffavicon.ico%22%20title%3D%22*%22%2F%3E&options=&version=master The asterisk was processed correctly. While the underscore was not. So the bug was transferred over. So the underscore and asterisk groups need to be rewritten. |
ghost
commented
Mar 21, 2019
Ok I think, I fixed it this time. |
Uh oh!
There was an error while loading. Please reload this page.
UziTech
commented
Mar 21, 2019
@davisjam could you check if these regexps are secure from redos? Here are the new and old derived regexps for New:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\s!"#$%&'()*+,\-.\/:;<=>?@\[^_{|}~])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\s!"#$%&'()*+,\-.\/:;<=>?@\[^_{|}~])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\s!"#$%&'()*+,\-.\/:;<=>?@\[^_{|}~])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/Old:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\s!"#$%&'()*+,\-.\/:;<=>?@\[^_{|}~])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\s!"#$%&'()*+,\-.\/:;<=>?@\[^_{|}~])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/ |
UziTech
commented
May 21, 2019
@x13machine could you rebase this so we could get it merged? |
ghost
commented
May 21, 2019
Ok I'll do that today |
How do I fix the errors? 😕 |
UziTech
commented
May 21, 2019
looks like example 455 should be Also move the new test files to |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
UziTech
commented
May 22, 2019
I'm not sure why the latest commit didn't trigger travis to run the tests, but I ran it locally and everything passed. |
UziTech
commented
May 22, 2019
This still doesn't fix |
Marked version:
Markdown flavor: Markdown.pl|CommonMark|GitHub Flavored Markdown|n/a
Description
It was caused
_and*parsed being differently in the em regex. I just replaced the part that searches for*test*and replaced it with the part searches for_test_and then just charged the characters. I don't know why they were different. Maybe there's a reason for it. All the tests pass, so I dunno.Contributor
Committer
In most cases, this should be a different person than the contributor.