ebookr-status
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -16,5 +16,5 @@ var util = require('util'); | ||
return util.format('Status: %s', url | ||
? util.format('<a href="%s%s">%s (%s)</a>', url, state, stateText, state) | ||
? util.format('[%s (%s)](%s%s)', stateText, state, url, state) | ||
: util.format('%s (%s)', stateText, state)); | ||
}); | ||
}; |
{ | ||
"name": "ebookr-status", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A simple ebookr-extension that displays status of document", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,4 +16,4 @@ var expect = require('chai').expect; | ||
it('should return rendered text', function () { | ||
expect(ebookr.parse('<status state="1" />').render()).to.equal('Status: <a href="http://test.com/#1">foo (1)</a>'); | ||
expect(ebookr.parse('<status state="1" />').render()).to.equal('Status: [foo (1)](http://test.com/#1)'); | ||
}); | ||
}); |
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
5832