marked-terminal
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -9,3 +9,2 @@ "use strict"; | ||
var TABLE_CELL_SPLIT = '^*||*^'; | ||
@@ -247,2 +246,4 @@ var TABLE_ROW_WRAP = '*|*|*|*'; | ||
function highlight(code, lang, opts, hightlightOpts) { | ||
if (!chalk.enabled) return code; | ||
var style = opts.code; | ||
@@ -249,0 +250,0 @@ |
{ | ||
"name": "marked-terminal", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "A custom render for marked to output to the Terminal", | ||
@@ -25,7 +25,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"cardinal": "^0.5.0", | ||
"cardinal": "^1.0.0", | ||
"chalk": "^1.0.0", | ||
"cli-table": "^0.3.1", | ||
"lodash.assign": "^3.0.0", | ||
"node-emoji": "^0.1.0" | ||
"lodash.assign": "^4.2.0", | ||
"node-emoji": "^1.3.1" | ||
}, | ||
@@ -37,3 +37,3 @@ "directories": { | ||
"marked": "^0.3.3", | ||
"mocha": "^2.2.4" | ||
"mocha": "^3.0.2" | ||
}, | ||
@@ -40,0 +40,0 @@ "repository": { |
@@ -12,3 +12,3 @@ marked-terminal | ||
``` | ||
```sh | ||
npm install marked marked-terminal | ||
@@ -21,3 +21,3 @@ ``` | ||
var marked = require('marked'); | ||
var TerminalRenderer = require('../'); | ||
var TerminalRenderer = require('marked-terminal'); | ||
@@ -44,13 +44,15 @@ marked.setOptions({ | ||
Example source | ||
Having the following markdown input: | ||
<pre> | ||
```js | ||
var foo = function(bar) { | ||
console.log(bar); | ||
}; | ||
foo('Hello'); | ||
``` | ||
``js | ||
var foo = function(bar) { | ||
console.log(bar); | ||
}; | ||
foo('Hello'); | ||
`` | ||
``` | ||
(But with proper syntax. Using "``" to avoid Github markdown) | ||
</pre> | ||
...we will convert it into terminal format: | ||
```javascript | ||
@@ -127,2 +129,2 @@ // Show the parsed data | ||
See [more examples](./example/) | ||
See [more examples](./example/) |
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
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
12212
273
127
+ Addedcardinal@1.0.0(transitive)
+ Addedesprima@3.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash.assign@4.2.0(transitive)
+ Addednode-emoji@1.11.0(transitive)
+ Addedredeyed@1.0.1(transitive)
- Removedcardinal@0.5.0(transitive)
- Removedesprima-fb@12001.1.0-dev-harmony-fb(transitive)
- Removedlodash._baseassign@3.2.0(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._bindcallback@3.0.1(transitive)
- Removedlodash._createassigner@3.1.1(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash.assign@3.2.0(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removednode-emoji@0.1.0(transitive)
- Removedredeyed@0.5.0(transitive)
Updatedcardinal@^1.0.0
Updatedlodash.assign@^4.2.0
Updatednode-emoji@^1.3.1