Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
chore: change node-markdown for marked
Browse files Browse the repository at this point in the history
Closes #5066
Closes #5067
  • Loading branch information
wesleycho committed Dec 14, 2015
1 parent b784422 commit 6dbd3f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var markdown = require('node-markdown').Markdown;
var marked = require('marked');
var fs = require('fs');

module.exports = function(grunt) {
Expand Down Expand Up @@ -237,7 +237,9 @@ module.exports = function(grunt) {
dependencies: dependenciesForModule(name),
docs: {
md: grunt.file.expand('src/'+name+'/docs/*.md')
.map(grunt.file.read).map(markdown).join('\n'),
.map(grunt.file.read).map(function(str) {
return marked(str);
}).join('\n'),
js: grunt.file.expand('src/'+name+'/docs/*.js')
.map(grunt.file.read).join('\n'),
html: grunt.file.expand('src/'+name+'/docs/*.html')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"karma-firefox-launcher": "^0.1.4",
"karma-jasmine": "^0.3.5",
"load-grunt-tasks": "^3.3.0",
"node-markdown": "0.1.1",
"marked": "^0.3.5",
"semver": "^5.0.1",
"shelljs": "^0.5.1"
},
Expand Down

0 comments on commit 6dbd3f8

Please sign in to comment.