800 Commits

Author SHA1 Message Date
Christopher Jeffrey
1f2e95e4ab Merge remote-tracking branch 'Mithgol/travis-ci' 2013-12-04 00:24:17 -06:00
Hsiaoming Yang
c80689f2b5 Remove documentation on highlight, since we won't need them.
Remove documentation on langPrefix.
Add documentation on renderer.
2013-12-04 14:21:08 +08: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
Hsiaoming Yang
5fa0a3fb90 Fix table align. Marked use style text-align instead of the align
attribute.
2013-12-04 14:12:27 +08:00
Hsiaoming Yang
73f5e0afbe Add renderer feature. This is a updated version of #129.
At #129, it only contains block level renderers. This patch contains
both block level and span level renderers.
Since renderer feature can do many things, I removed highlight option
and headerPrefix option.

https://github.com/chjj/marked/pull/129
2013-12-04 14:05:57 +08:00
Chris Wren
d32c3ffa5d Fixed highlight option callback type in README 2013-12-03 22:03:37 -08:00
Chris Wren
e778ce03da Fixed highlight.js example 2013-12-03 21:57:57 -08:00
Chris Wren
dee9dc7bb1 Merge pull request #246 from jheusala/master
Fixed comment about what example outputs
2013-12-03 21:49:54 -08:00
Chris Wren
30565611d0 Merge pull request #289 from MoOx/patch-1
fix pygmentize typo
2013-12-03 21:48:07 -08:00
Christopher Jeffrey
7862aa0fb6 add preferGlobal once again. 2013-12-03 23:15:17 -06:00
Christopher Jeffrey
2a0b794c2d fix header renderer. 2013-12-03 23:12:57 -06:00
Christopher Jeffrey
7eed150966 Merge remote-tracking branch 'lepture/renderer' 2013-12-03 23:09:03 -06:00
Maxime Thirouin
22313ad9ee fix pygmentize typo
pygementize => pygmentize
2013-11-18 08:25:56 +01:00
Christopher Jeffrey
77352ec9fc component v0.2.10. 2013-11-02 22:34:39 -05:00
Christopher Jeffrey
ab84e8c605 add headerPrefix option. fixes #272. misc readme fixes. 2013-11-02 18:26:20 -05:00
Christopher Jeffrey
0d27d58f16 v0.2.10. fixes #241. v0.2.10 2013-11-02 18:07:41 -05:00
Jaakko-Heikki Heusala
a444ca3709 Fixed comment about what example outputs
"__markdown__" outputs "<strong>markdown</strong>" instead of "<i>markdown</i>".
2013-09-12 10:44:07 +03:00
Christopher Jeffrey
84a9be252d minor. 2013-08-24 19:10:18 -05:00
Christopher Jeffrey
e7963ca778 add half-assed CLA to readme. 2013-08-12 11:09:16 -05:00
Christopher Jeffrey
aba62d01d6 style: do not violate 80 col limit. no double quotes. 2013-08-08 11:29:26 -05:00
Christopher Jeffrey
f74978c3cd another charAt. minor space consistency changes. 2013-08-08 10:03:52 -05:00
Christopher Jeffrey
ab2b953ea9 use charAt. fixes #192. 2013-08-08 04:25:12 -05:00
Christopher Jeffrey
0903a3ea5b minor readme fix. 2013-08-07 11:57:46 -05:00
Christopher Jeffrey
d53f20690f fix nested links+img. 2013-08-07 10:42:55 -05:00
Christopher Jeffrey
0a7cc9ec6f add contributing section to readme. 2013-08-07 10:36:54 -05: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
Christopher Jeffrey
0a9e7340be Merge pull request #221 from Adduc/master
Align td and th with css instead of align property
2013-08-07 04:04:09 -07:00
John Long
09e83d52ba Switch from th/td attribute 'align' to style attribute 'text-align' for aligning 2013-08-06 14:51:33 -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
Mithgol
71b9c8a236 configure Travis CI services 2013-08-04 21:40:29 -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
031b897619 rewrite smartypants to match style. 2013-08-04 07:07:49 -05: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
Christopher Jeffrey
1da315f05d Merge pull request #217 from ifraixedes/master
Fixed the parameters' order of the hightlightAuto function call
2013-08-04 04:41:26 -07:00
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
Ivan Fraixedes
7aef749538 Fixed the parameters' order of the hightlightAuto function call in the hightlight code example 2013-08-03 15:17:44 +01: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
3d64a85734 fix new lheading rule (2 chars) for markdown guide test. 2013-08-02 13:16:30 -05:00
Christopher Jeffrey
8ba8a6fdb0 update tests in other directories. 2013-08-02 13:12:33 -05:00
Christopher Jeffrey
f1851a18c8 minor async refactor. 2013-08-02 12:16:10 -05:00
Christopher Jeffrey
b16061ba2f Merge pull request #155 from minrk/no-escape-style
do not escape style elements
2013-08-02 10:04:16 -07: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