Tony Brix
18a4619726
remove failing test for now
2018-02-28 09:36:52 -06:00
Jamie Davis
b15e42b67c
security: fix regexes vulnerable to catastrophic backtracking
...
Problem:
Four regexes were vulnerable to catastrophic backtracking.
This leaves markdown servers open to a potential REDOS attack.
Solution:
Refactor the regexes.
For two similar regexes (html) I didn't change the language.
For two similar regexes (noline) I slightly changed the language:
![[[[[[[[[[[]] was accepted by the old noline pattern.
It is now rejected.
All tests pass, though I'm not sure if I've broken something that
was untested.
This addresses #1070 (with #1058 along the way).
Bonus: rename a stray test to use _ instead of -.
2018-02-26 21:03:55 -05:00
Federico Soave
2ea539ad67
add commonmark test for thematic breaks
2018-01-25 17:08:13 +01:00
Federico Soave
f514b92b5b
exclude test 607 in gfm_links, which does not pass FIXME
2018-01-23 16:29:31 +01:00
Federico Soave
ed6d145d22
remove non-compliant test case
2018-01-23 16:29:31 +01:00
Federico Soave
6cba7caad6
add gfm tests for autolinks
2018-01-23 16:29:31 +01:00
Federico Soave
b3769fc7a7
adjust mangle_xss test case to match commonmark output
2018-01-23 16:29:30 +01:00
Federico Soave
dc85deedb7
add commonmark tests for autolinks
2018-01-22 19:03:14 +01:00
Cory Forsyth
6d974b1dbf
Do not autolink a trailing "!" in a URL
...
* Expand gfm link tests to include all possible ending punctuation
2018-01-22 19:03:14 +01:00
Federico Soave
d381127ca2
fix test case introduced in 4bbba32
2018-01-22 15:47:57 +01:00
Josh Bruce
68aab24f7e
Merge pull request #1023 from Feder1co5oave/new_blockquote
...
[commonmark] Make blockquotes commonmark compliant
2018-01-20 17:14:44 -05:00
Josh Bruce
19f6afe4aa
Merge pull request #456 from Feder1co5oave/clean-segments
...
IDs of headings with inline tokens (link, em, bold...)
2018-01-20 16:09:27 -05:00
Josh Bruce
a98bad2430
Merge pull request #1013 from Feder1co5oave/fix-backticks2
...
fix backticks in inline code (replaces #503 , fixes #312 )
2018-01-20 15:46:19 -05:00
Federico Soave
399cf8235f
add commonmark tests for blockquotes. Example 198 and 200 are disabled since they do not pass, FIXME
2018-01-19 03:58:30 +01:00
Костя Третяк
aece9b2732
Overwritten the test for a more precise wording.
2018-01-19 03:58:30 +01:00
Federico Soave
911780dcca
fix def_blocks test: link reference definition cannot interrupt a paragraph + blockquote laziness rule, according to commonmark spec
...
(see review of #974 . Partial replay of 98ac7a4)
2018-01-19 03:58:18 +01:00
Federico Soave
c7798f412b
exclude test 167 in link_defs that does not pass. FIXME
2018-01-19 03:33:11 +01:00
Federico Soave
4bbba32626
add commonmark tests for link definitions
2018-01-19 03:25:33 +01:00
Federico Soave
379c2c22bf
add tests for clean heading IDs
2018-01-15 03:30:43 +01:00
Federico Soave
015327bea2
fix test accordingly
2018-01-15 03:25:27 +01:00
Federico Soave
4bc3126099
add tests for codespans with backticks in them
2018-01-14 23:19:52 +01:00
Federico Soave
2c11624736
preserve trailing newlines in code fences
2018-01-12 18:02:49 +01:00
Костя Третяк
bff566720d
Revert 98ac7a4395
and a477d1d0e2
2018-01-08 19:50:03 +02:00
Tony Brix
fd5d192acd
Merge branch 'master' into test-fix
2018-01-06 10:58:25 -06:00
Tony Brix
52bfc9c4db
use front-matter for test options
2018-01-06 01:16:06 -06:00
Tony Brix
f31d3fa43f
change .text to .md
2018-01-02 11:59:52 -06:00
Tony Brix
950e65ec51
add fixed tests to /new
2018-01-02 11:12:30 -06:00
Christopher Jeffrey
aae62c3395
place new tests in test/new.
2015-07-31 02:22:36 -07:00
ledsun
c3e3a89ecf
Fix to heading regular expression for GFM #201 .
2014-11-18 13:38:15 +09:00
Christopher Jeffrey
b9b941ebea
Revert "see #302 . remove all obsolete features. keep things easy to revert."
...
This reverts commit f9c90b0cdb15d6a3ef087b79364b979fb8ef81bb.
Revert "Fix test cases. Since we have removed the headerPrefix option. There"
This reverts commit 509b284c7cc09232562c89a91453797ab88fd73f.
2013-12-23 08:00:35 -06:00
Hsiaoming Yang
509b284c7c
Fix test cases. Since we have removed the headerPrefix option. There
...
will be no id on headings.
2013-12-04 14:13:19 +08:00
Christopher Jeffrey
37698ee7e0
list-like lines = lists in gfm. fixes #120 .
2013-08-07 08:52:01 -05:00
Christopher Jeffrey
112aac6718
fix gfm tables test. see #221 .
2013-08-07 06:15:56 -05:00
Christopher Jeffrey
6dca44b2d9
copy new tests to test/new. have --fix add heading id's to original tests.
2013-08-04 06:59:41 -05:00
Christopher Jeffrey
8ba8a6fdb0
update tests in other directories.
2013-08-02 13:12:33 -05:00
Christopher Jeffrey
c7664d947a
add smartypants test.
2013-03-17 02:07:30 -05:00
Christopher Jeffrey
ebc1b9491c
improve double_link test.
2013-01-09 13:49:43 -06:00
Christopher Jeffrey
2cd27a6720
add gfm strikethrough. fixes #53 .
2013-01-03 07:44:02 -06:00
Christopher Jeffrey
ec47218dd9
fix misnested TH tags.
2013-01-02 14:53:10 -06:00
Christopher Jeffrey
1f09da120f
Merge remote-tracking branch 'kitsonk/gfm_tables'
...
Conflicts:
lib/marked.js
2013-01-02 14:20:57 -06:00
Christopher Jeffrey
35d1911c3b
def_block test
2012-12-13 11:36:02 -06:00
Christopher Jeffrey
262a9c051c
gfm code hr list test
2012-12-13 11:36:02 -06:00
isaacs
53e570e481
gfm: Support fences of more than 3 characters
2012-12-13 09:27:05 -08:00
Christopher Jeffrey
88f7004c98
add def block inclusion test
2012-09-17 23:58:47 -05:00
Kitson Kelly
ac99b517de
Migrate table support as part of GFM support
2012-09-03 17:28:06 +01:00
Kitson Kelly
39c6687c19
add support for Markdown Extra Tables
2012-09-03 17:09:12 +01:00
Christopher Jeffrey
d5b751323d
add test for gfm links embedded in markup.
2012-07-19 13:27:29 -05:00
Christopher Jeffrey
05dc64b9da
Avoid creating two paragraphs on autolink. Fixes #63 .
...
This has implications for XML namespaced elements, which were
originally always treated as block elements by the top-level paragraph
rule. As a side-effect of this commit, they are now always considered
inline.
2012-07-13 11:29:05 -05:00
Christopher Jeffrey
20c70b35ff
add tests for hr list break fix.
2012-04-24 00:04:50 -05:00
Christopher Jeffrey
df762d3c4f
fix bullet recognization in list rule. fixes #46 .
2012-04-21 16:45:15 -05:00