Skip to content

Commit

Permalink
Merge branch 'integration'
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 8, 2010
2 parents b27df74 + edc190b commit 00be152
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
@@ -1,3 +1,6 @@
[submodule "support/expresso"]
path = support/expresso
url = git://github.com/visionmedia/expresso.git
url = git://github.com/visionmedia/expresso.git
[submodule "support/markdown"]
path = support/markdown
url = http://github.com/evilstreak/markdown-js.git
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -11,10 +11,10 @@ uninstall:
rm -f $(LIB_PREFIX)/jade.js

test:
@./support/expresso/bin/expresso -I lib test/*.js
@./support/expresso/bin/expresso -I lib -I support/markdown/lib test/*.js

test-cov:
@./support/expresso/bin/expresso -I lib --cov test/*.js
@./support/expresso/bin/expresso -I lib -I support/markdown/lib --cov test/*.js

api.html: lib/jade.js
@dox --title "Jade" \
Expand Down
6 changes: 3 additions & 3 deletions Readme.md
Expand Up @@ -17,9 +17,9 @@
- supports [Express JS](http://expressjs.com)
- no tag prefix
- filters
- :sass
- :less
- :markdown
- :sass must have [sass.js](http://github.com/visionmedia/sass.js) installed
- :less must have [less.js](http://github.com/cloudhead/less.js) installed
- :markdown must have [markdown-js](http://github.com/evilstreak/markdown-js) installed
- :cdata
- :javascript

Expand Down
2 changes: 1 addition & 1 deletion lib/jade.js
Expand Up @@ -114,7 +114,7 @@ var filters = exports.filters = {

markdown: function(str){
str = str.replace(/\\n/g, '\n');
return require('markdown').parse(str).replace(/\n/g, '\\n');
return require('markdown').toHTML(str).replace(/\n/g, '\\n').replace(/'/g,''');
}
};

Expand Down
1 change: 1 addition & 0 deletions support/markdown
Submodule markdown added at 805b0a
2 changes: 1 addition & 1 deletion test/filters.test.js
Expand Up @@ -32,7 +32,7 @@ module.exports = {

'test :markdown filter': function(assert){
assert.equal(
'<h1>foo</h1>\n\n<ul>\n<li>bar</li>\n<li>baz</li>\n</ul>\n',
'<h1>foo</h1>\n\n<ul><li>bar</li><li>baz</li></ul>',
render(':markdown\n | #foo\n | - bar\n | - baz'))
},

Expand Down

0 comments on commit 00be152

Please sign in to comment.