Vitaly Puzrin
10 years ago
16 changed files with 24 additions and 23 deletions
@ -0,0 +1,10 @@ |
|||||
|
'use strict' |
||||
|
|
||||
|
var commonmark = require('./stmd'); |
||||
|
var parser = new commonmark.DocParser(); |
||||
|
var renderer = new commonmark.HtmlRenderer(); |
||||
|
|
||||
|
exports.run = function(data) { |
||||
|
return renderer.render(parser.parse(data)); |
||||
|
} |
||||
|
|
@ -1,10 +0,0 @@ |
|||||
'use strict' |
|
||||
|
|
||||
var stmd = require('./stmd'); |
|
||||
var parser = new stmd.DocParser(); |
|
||||
var renderer = new stmd.HtmlRenderer(); |
|
||||
|
|
||||
exports.run = function(data) { |
|
||||
return renderer.render(parser.parse(data)); |
|
||||
} |
|
||||
|
|
Loading…
Reference in new issue