gitter-markdown-processor
Advanced tools
Comparing version 13.0.0 to 14.0.0
@@ -187,4 +187,14 @@ "use strict"; | ||
renderer.commit = function(provider, repo, sha, href) { | ||
renderer.commit = function(provider, repo, sha, href, text) { | ||
var text = repo+'@'+sha.substring(0, 7); | ||
if(!href) { | ||
var baseUrl = 'https://github.com/'; | ||
if (provider === 'gitlab') { | ||
baseUrl = 'https://gitlab.com/'; | ||
} | ||
href = baseUrl + repo + '/commit/' + sha; | ||
} | ||
var out = '<a href="' + href + '" target="_blank" ' + | ||
@@ -191,0 +201,0 @@ 'data-link-type="commit" ' + |
{ | ||
"name": "gitter-markdown-processor", | ||
"version": "13.0.0", | ||
"version": "14.0.0", | ||
"description": "parses gitter chat messages, but in its own process", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"cld": "^2.4.8", | ||
"gitter-marked": "^0.12.0", | ||
"gitter-marked": "^0.13.0", | ||
"highlight.js": "^8.5.0", | ||
@@ -12,0 +12,0 @@ "htmlencode": "0.0.4", |
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
41512
673
+ Addedgitter-marked@0.13.0(transitive)
- Removedgitter-marked@0.12.0(transitive)
Updatedgitter-marked@^0.13.0