643 Commits

Author SHA1 Message Date
Mithgol
1866bafd97 ; 2013-08-04 02:01:32 -07:00
Mithgol
9803facf8f node test should have non-zero exit code if some tests failed 2013-08-03 21:53:28 -07:00
Mithgol
cc87c6fac5 runTests() should return true if tests passed, false if some failed 2013-08-03 21:46:48 -07:00
Jason Karns
a0f13ed00e Generate heading IDs in HTML output.
Uses the heading text itself as the ID for the H*. The only
transformation made is to replace whitespace with '-' (hyphen). This
conforms to the HTML5 spec wherein ID attributes can contain any
non-whitespace character. (The previous HTML4 restrictions on ID
attribute values have been relaxed.)

This feature is limited in scope to strictly generating heading IDs.
A future enhancement would be a simple way of letting the author specify
the ID attribute. Perhaps:
  # Some: Crazy Header  {#custom_id}

  to generate: <h1 id="custom_id">Some: Crazy Header</h1>
2013-08-02 17:48:30 -04:00
Christopher Jeffrey
8ba8a6fdb0 update tests in other directories. 2013-08-02 13:12:33 -05:00
Christopher Jeffrey
321490b344 Merge pull request #174 from minrk/allow-space
allow spaces in inline URLs
2013-08-02 10:00:55 -07:00
Vit Brunner
e7e9c07d6b Improve smartypants support
Taken from http://gist.github.com/drdrang/705071

Basically, if a ' or a " is preceded by the beginning of line, dash,
slash, parentheses, brackets, quotes, or whitespace, it's an opening
one. Otherwise it's a closing one.
2013-06-18 22:35:56 +01:00
MinRK
d358cbeed8 test spaces in URLs 2013-06-17 16:23:49 -04:00
Christopher Jeffrey
bee9e8e5c3 attempt all benchmarks. 2013-05-28 20:37:59 -05:00
Christopher Jeffrey
58a692dbd4 Merge pull request #130 from lepture/bench-fix
fix benchmark
2013-03-30 09:24:15 -07:00
Christopher Jeffrey
c7664d947a add smartypants test. 2013-03-17 02:07:30 -05:00
Hsiaoming Yang
6a30b517b1 1. fix benchmark for showdown
2. remove discount benchmark // not working on v0.8.x
3. add robotskirt benchmark
4. add target of bench in Makefile
5. add devDependencies in package.json
2013-03-01 17:25:28 +08:00
Christopher Jeffrey
6959c202da fix browser test. 2013-02-13 16:20:28 -06:00
Christopher Jeffrey
873170ba5c remove test/fix and test/fix.js. 2013-02-12 01:19:48 -06:00
Christopher Jeffrey
6246784914 allow options for tests and benchmarks. 2013-02-07 04:27:39 -06:00
Christopher Jeffrey
78dc1f1190 Require marked relatively for tests. 2013-01-20 17:44:25 -06:00
Christopher Jeffrey
ebc1b9491c improve double_link test. 2013-01-09 13:49:43 -06:00
Christopher Jeffrey
995cb0ca00 fix options merge. 2013-01-09 13:43:36 -06:00
Christopher Jeffrey
57123433f5 more test refactoring. 2013-01-06 22:03:59 -06:00
Christopher Jeffrey
313349217b refactor tests. 2013-01-06 21:43:11 -06:00
Christopher Jeffrey
fdc1d61f53 clean up tests. 2013-01-03 08:30:51 -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
3ad8e8edab add tests for #100. 2012-12-13 11:36:35 -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
isaacs
c6a9e7284b Support ~~~ fences in GHM 2012-08-17 10:26:54 -07: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
Christopher Jeffrey
041dd98ed4 change highlight option. add code class prefix. 2012-04-06 16:08:17 -05:00
Christopher Jeffrey
75053dd0c0 refactor test. dont use html prettifier. 2012-03-11 00:45:28 -06:00
Christopher Jeffrey
1bf3dc4bf7 quick and dirty test interface for clientside 2012-03-11 00:43:00 -06:00
Christopher Jeffrey
791cf53772 rename setDefaults to setOptions, refactor. update benchmarks. 2012-02-20 08:50:43 -06:00
Christopher Jeffrey
3e42b67057 always sanitize html blocks, even if pedantic. benchmarks. 2012-02-19 21:51:52 -06:00
Christopher Jeffrey
b2189ab99c optimize options more 2012-02-19 21:29:23 -06:00
Christopher Jeffrey
92aaea8fe5 nested underscore ems, fix tests 2012-02-16 12:18:07 -06:00
Christopher Jeffrey
2798f25c40 change tests to coincide with apostrophe character reference 2012-02-03 15:01:42 -06:00
Christopher Jeffrey
504bf0b526 small cleanup 2012-01-30 12:11:42 -06:00
Christopher Jeffrey
684cfbb73b add loose list tests for different loose list behavior 2012-01-28 18:44:52 -06:00
Christopher Jeffrey
2eb297cda3 undo main.text change for benchmark comparisons, refactor test/index.js 2012-01-28 16:55:21 -06:00
Christopher Jeffrey
5809d6ad8d smarter whitespace handling for list items 2012-01-28 13:04:28 -06:00
Christopher Jeffrey
9bbb0b71e1 conformance: allow spaced blockquotes 2012-01-28 06:01:21 -06:00
Christopher Jeffrey
983e1eaa6e tests, add linkdef test to toplevel_paragraphs 2012-01-19 01:35:26 -06:00