@@ -30,7 +30,7 @@ def badhash(ref):
3030
3131 document = '' .join ("[%s]: /url\n \n [%s]\n \n " % (key , bad_key ) for key in collisions )
3232
33- return document , re .compile ("(<p>\[%s\]</p>\n ){%d}" % (bad_key , COUNT - 1 ))
33+ return document , re .compile ("(<p>\\ [%s\ \ ]</p>\n ){%d}" % (bad_key , COUNT - 1 ))
3434
3535allowed_failures = {"many references" : True }
3636
@@ -48,10 +48,10 @@ def badhash(ref):
4848 re .compile ("(_a ){64999}_a" )),
4949 "many link closers with no openers" :
5050 (("a]" * 65000 ),
51- re .compile ("(a\]){65000}" )),
51+ re .compile ("(a\\ ]){65000}" )),
5252 "many link openers with no closers" :
5353 (("[a" * 65000 ),
54- re .compile ("(\[a){65000}" )),
54+ re .compile ("(\\ [a){65000}" )),
5555 "mismatched openers and closers" :
5656 (("*a_ " * 50000 ),
5757 re .compile ("([*]a[_] ){49999}[*]a_" )),
@@ -60,19 +60,19 @@ def badhash(ref):
6060 re .compile ("a[*][*]b(c[*] ){49999}c[*]" )),
6161 "link openers and emph closers" :
6262 (("[ a_" * 50000 ),
63- re .compile ("(\[ a_){50000}" )),
63+ re .compile ("(\\ [ a_){50000}" )),
6464 "pattern [ (]( repeated" :
6565 (("[ (](" * 80000 ),
66- re .compile ("(\[ \(\] \(){80000}" )),
66+ re .compile ("(\\ [ \\ ( \\ ] \ \ (){80000}" )),
6767 "pattern ![[]() repeated" :
6868 ("![[]()" * 160000 ,
69- re .compile ("(!\[<a href=\" \" ></a>){160000}" )),
69+ re .compile ("(!\\ [<a href=\" \" ></a>){160000}" )),
7070 "hard link/emph case" :
7171 ("**x [a*b**c*](d)" ,
7272 re .compile ("\\ *\\ *x <a href=\" d\" >a<em>b\\ *\\ *c</em></a>" )),
7373 "nested brackets" :
7474 (("[" * 50000 ) + "a" + ("]" * 50000 ),
75- re .compile ("\[{50000}a\]{50000}" )),
75+ re .compile ("\\ [{50000}a\ \ ]{50000}" )),
7676 "nested block quotes" :
7777 ((("> " * 50000 ) + "a" ),
7878 re .compile ("(<blockquote>\n ){50000}" )),
@@ -87,13 +87,13 @@ def badhash(ref):
8787 re .compile ("^<p>[e`]*</p>\n $" )),
8888 "unclosed links A" :
8989 ("[a](<b" * 30000 ,
90- re .compile ("(\[a\] \(<b){30000}" )),
90+ re .compile ("(\\ [a\\ ] \ \ (<b){30000}" )),
9191 "unclosed links B" :
9292 ("[a](b" * 30000 ,
93- re .compile ("(\[a\] \(b){30000}" )),
93+ re .compile ("(\\ [a\\ ] \ \ (b){30000}" )),
9494 "unclosed <!--" :
9595 ("</" + "<!--" * 300000 ,
96- re .compile ("\<\/( \<!--){300000}" )),
96+ re .compile ("\\ <\\ /( \ \ <!--){300000}" )),
9797 "tables" :
9898 ("aaa\r bbb\n -\v \n " * 30000 ,
9999 re .compile ("^<p>aaa</p>\n <table>\n <thead>\n <tr>\n <th>bbb</th>\n </tr>\n </thead>\n <tbody>\n (<tr>\n <td>aaa</td>\n </tr>\n <tr>\n <td>bbb</td>\n </tr>\n <tr>\n <td>-\x0b </td>\n </tr>\n ){29999}</tbody>\n </table>\n $" )),
0 commit comments