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

gitter-markdown-processor

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitter-markdown-processor - npm Package Compare versions

Comparing version 7.1.3 to 7.2.0

1

lib/process-chat-async.js

@@ -16,3 +16,2 @@ /*jshint globalstrict:true, trailing:false, unused:true, node:true */

if(!plainText) return result;
return detectLang(plainText)

@@ -19,0 +18,0 @@ .then(function(lang) {

87

lib/process-chat.js

@@ -10,2 +10,3 @@ /*jshint globalstrict:true, trailing:false, unused:true, node:true */

var matcher = require('./github-url-matcher');
var htmlencode = require('htmlencode');

@@ -24,3 +25,81 @@ var options = { gfm: true, tables: true, sanitize: true, breaks: true, linkify: true, skipComments: true };

highlight.configure({classPrefix: ''});
highlight.configure( { classPrefix: '', languages : [
"apache",
"applescript",
"css",
"bash",
"clojure-repl",
"clojure",
"javascript",
"coffeescript",
"cpp",
"cs",
"d",
"dart",
"delphi",
"diff",
"django",
"dockerfile",
"dos",
"elixir",
"erb",
"erlang-repl",
"erlang",
"fortran",
"fsharp",
"gcode",
"gherkin",
"go",
"gradle",
"groovy",
"haml",
"handlebars",
"haskell",
"http",
"ini",
"java",
"json",
"kotlin",
"less",
"lisp",
"livescript",
"lua",
"makefile",
"markdown",
"mathematica",
"matlab",
"nginx",
"objectivec",
"perl",
"php",
"powershell",
"prolog",
"puppet",
"python",
"q",
"r",
"rib",
"rsl",
"ruby",
"rust",
"scala",
"scheme",
"scilab",
"scss",
"smali",
"smalltalk",
"sml",
"sql",
"stylus",
"swift",
"tcl",
"tex",
"typescript",
"vbnet",
"vbscript-html",
"vbscript",
"vim",
"x86asm",
"xml"
]});

@@ -54,3 +133,7 @@

if (highlight.listLanguages().indexOf(lang) !== -1)
if (lang === "text") {
return util.format('<pre><code class="text">%s</code></pre>', htmlencode.htmlEncode(code));
}
if (highlight.getLanguage(lang))
return util.format('<pre><code class="%s">%s</code></pre>', lang, highlight.highlight(lang, code).value);

@@ -57,0 +140,0 @@

{
"name": "gitter-markdown-processor",
"version": "7.1.3",
"version": "7.2.0",
"description": "parses gitter chat messages, but in its own process",

@@ -8,3 +8,3 @@ "main": "index.js",

"gitter-marked": "^0.9.0",
"highlight.js": "git://github.com/gitterHQ/highlight.js#6523cbb6e3f2a9374ea96e82f977ef57ef8cdf59",
"highlight.js": "~8.5.0",
"htmlencode": "0.0.4",

@@ -11,0 +11,0 @@ "katex": "0.1.0",

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