Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

marked-terminal

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked-terminal - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

3

index.js

@@ -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/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc