jstransformer-marked
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -7,4 +7,5 @@ 'use strict'; | ||
exports.outputFormat = 'html'; | ||
exports.inputFormats = ['marked', 'markdown', 'md']; | ||
exports.render = function (str, options) { | ||
return marked(str, options); | ||
}; |
{ | ||
"name": "jstransformer-marked", | ||
"version": "0.0.1", | ||
"description": "Transform markdown into HTML using marked", | ||
"version": "0.0.2", | ||
"description": "Marked support for JSTransformers.", | ||
"keywords": [ | ||
@@ -9,6 +9,13 @@ "jstransformer" | ||
"dependencies": { | ||
"marked": "^0.3.2" | ||
"marked": "^0.3.3" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"devDependencies": { | ||
"test-jstransformer": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"test": "node test" | ||
"test": "test-jstransformer", | ||
"coverage": "test-jstransformer coverage" | ||
}, | ||
@@ -19,4 +26,7 @@ "repository": { | ||
}, | ||
"author": "ForbesLindesay", | ||
"author": { | ||
"name": "JSTransformers Team", | ||
"url": "http://github.com/orgs/jstransformers/people" | ||
}, | ||
"license": "MIT" | ||
} | ||
} |
# jstransformer-marked | ||
Transform markdown into HTML using marked | ||
[Marked](http://npm.im/marked) support for [JSTransformers](http://github.com/jstransformers). | ||
[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-marked/master.svg)](https://travis-ci.org/jstransformers/jstransformer-marked) | ||
[![Dependency Status](https://img.shields.io/gemnasium/jstransformers/jstransformer-marked.svg)](https://gemnasium.com/jstransformers/jstransformer-marked) | ||
[![Coverage Status](https://img.shields.io/coveralls/jstransformers/jstransformer-marked/master.svg)](https://coveralls.io/r/jstransformers/jstransformer-marked?branch=master) | ||
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-marked/master.svg)](http://david-dm.org/jstransformers/jstransformer-marked) | ||
[![NPM version](https://img.shields.io/npm/v/jstransformer-marked.svg)](https://www.npmjs.org/package/jstransformer-marked) | ||
@@ -13,4 +14,13 @@ | ||
## API | ||
```js | ||
var marked = require('jstransformer')(require('jstransformer-marked')) | ||
foo.render('# Hello World!').body | ||
//=> '<h1>Hello World!</h1>' | ||
``` | ||
## License | ||
MIT | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
3107
26
0
1
5
1
80
8
2
Updatedmarked@^0.3.3