643 Commits

Author SHA1 Message Date
Tony Brix
fd5d192acd Merge branch 'master' into test-fix 2018-01-06 10:58:25 -06:00
Tony Brix
b61af2a2c3 clean up 2018-01-06 10:46:21 -06:00
Tony Brix
26de4f1298 fix octal literal 2018-01-06 01:44:32 -06:00
Tony Brix
03f510d5b7 add markdown-it to bench 2018-01-06 01:44:10 -06:00
Tony Brix
e5571beb52 linting 2018-01-06 01:19:43 -06:00
Tony Brix
9e0ec53ebb fix bench 2018-01-06 01:16:46 -06:00
Tony Brix
52bfc9c4db use front-matter for test options 2018-01-06 01:16:06 -06:00
Josh Bruce
4a5cf949ec
Merge pull request #852 from jeremyblalock/master
Make erroneous / dangerous links display as text only

Slated for 0.3.10
2018-01-05 18:27:22 -05:00
Josh Bruce
08d25126d9
Merge pull request #977 from KostyaTretyak/parser-fix
Parser fix
2018-01-04 22:02:23 -05:00
Federico Soave
1949dfdf21 handle escaped brackets in link description 2018-01-03 01:56:38 +01:00
Tony Brix
951f2c3916 change folder name to compiled_tests 2018-01-02 13:57:24 -06:00
Tony Brix
31005193a7 always "fix" tests before testing 2018-01-02 13:53:05 -06:00
Tony Brix
368952d101 add /test/tests to .gitignore 2018-01-02 13:51:11 -06:00
Tony Brix
5d2e796ca2 remove invalid failing test check 2018-01-02 12:07:55 -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
Костя Третяк
13e97eb56b
Fix auto_links secure
Related to https://github.com/chjj/marked/pull/814
2018-01-02 19:05:01 +02:00
Alexander Gromnitsky
e0388905c9 add a test case for links defs & paragraphs 2017-12-26 06:09:23 +02:00
Tony Brix
cb72584c5d escape non-mangled xss
fixes #926
2017-12-22 23:13:53 -06:00
Tony Brix
6d1901ff71 sanatize uppercase hexidecimal
fixes #925
2017-12-22 22:59:23 -06:00
Tony Brix
cf8ed1d1e0 allow test flags to be more than true or false 2017-12-22 11:05:30 -06:00
Tony Brix
858464b1a3 Merge branch 'pr/974' into pr/958 2017-12-22 10:46:48 -06:00
Костя Третяк
a477d1d0e2
Overwritten the test for a more precise wording. 2017-12-18 23:44:19 +02:00
Костя Третяк
98ac7a4395
Fixed https://github.com/chjj/marked/issues/465 2017-12-18 23:42:06 +02:00
Josh Bruce
e5b2998326 Initial commit 2017-12-01 11:17:22 -05:00
Jeremy Blalock
c51038abc5 Updates tests 2017-02-10 10:23:46 -08:00
Matt Austin
cd2f6f5b70 added data: link fix to prevent xss 2017-01-19 15:03:37 -08:00
Matt Austin
fd0d1a2935 Merge pull request #592 from matt-/xss_html_entities
XSS with HTML entities
2016-07-29 12:07:57 -07:00
Christopher Jeffrey
aae62c3395 place new tests in test/new. 2015-07-31 02:22:36 -07:00
Andreas Lind
85cfbb6852 Added test for a code block with a single empty line as well. 2015-07-07 11:25:20 +02:00
Andreas Lind
3ec548a488 Fixed parsing of empty code blocks.
Fixes #615
2015-07-07 10:42:05 +02:00
Matt Austin
2cff85979b added explicit matching for HTML entities to prevent XSS 2015-05-19 14:15:28 -07:00
Christopher Jeffrey
49b7eaca76 Merge remote-tracking branch 'ledsun/gfm_hashtag' 2015-05-07 18:37:58 -07:00
karland
22442aa033 Smartypants &ndash and &mdash
Hi,

according to [Gruber's
Smartypants](http://daringfireball.net/projects/smartypants/)
`--` result in an `–`(\u2013) and `---` in an `—`(\u2n14).

As far as I can tell, `marked` converts `--` into `—`
2015-01-28 18:01:36 +01:00
ledsun
c3e3a89ecf Fix to heading regular expression for GFM #201. 2014-11-18 13:38:15 +09:00
Christopher Jeffrey
1c188ebb55 [test] return proper exit code on tests passing. 2014-05-01 17:50:48 -05: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
Christopher Jeffrey
2d5090b1de Merge remote-tracking branch 'lepture/feature-renderer'
Conflicts:
	README.md
	lib/marked.js
2013-12-04 04:57:30 -06:00
Christopher Jeffrey
1f2e95e4ab Merge remote-tracking branch 'Mithgol/travis-ci' 2013-12-04 00:24:17 -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
81e2062cee add a preprocessor for tests. 2013-08-07 06:47:37 -05:00
Christopher Jeffrey
112aac6718 fix gfm tables test. see #221. 2013-08-07 06:15:56 -05:00
Mithgol
eceb35d1e6 skip tests that are known to fail, as enumerated in chjj/marked#136 2013-08-04 21:50:35 -07:00
Christopher Jeffrey
9eafd2ede9 add .npmignore. minor. 2013-08-04 07:15:37 -05:00
Christopher Jeffrey
5dd2456866 refactor exit code 1 on test failure. 2013-08-04 07:13:03 -05:00
Christopher Jeffrey
48f239bbaf Merge pull request #219 from Mithgol/exit-code
`node test` should have non-zero exit code if some tests failed
2013-08-04 05:13:29 -07:00
Christopher Jeffrey
75dff71cb1 remove all non-word characters from heading id's. see #181. 2013-08-04 07:04:51 -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
3b2d4bdef6 Merge pull request #181 from jasonkarns/heading-ids
Generate Heading IDs
2013-08-04 04:45:23 -07:00