Skip to content

Commit 9c8b23d

Browse files
committed
Use mdurl instead of copied encode.js, decode.js.
Removed lib/{encode,decode}.js. Added mdurl to package.json.
1 parent 3360568 commit 9c8b23d

File tree

5 files changed

+3
-254
lines changed

5 files changed

+3
-254
lines changed

LICENSE

-28
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727

2828
---
2929

30-
lib/encode.js and lib/decode.js come from
31-
https://github.com/markdown-it/mdurl
32-
33-
Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.
34-
35-
Permission is hereby granted, free of charge, to any person
36-
obtaining a copy of this software and associated documentation
37-
files (the "Software"), to deal in the Software without
38-
restriction, including without limitation the rights to use,
39-
copy, modify, merge, publish, distribute, sublicense, and/or sell
40-
copies of the Software, and to permit persons to whom the
41-
Software is furnished to do so, subject to the following
42-
conditions:
43-
44-
The above copyright notice and this permission notice shall be
45-
included in all copies or substantial portions of the Software.
46-
47-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
48-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
49-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
50-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
51-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
52-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
53-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
54-
OTHER DEALINGS IN THE SOFTWARE.
55-
56-
---
57-
5830
lib/normalize-reference.js is a slightly modified version of
5931
https://github.com/dmoscrop/fold-case:
6032

lib/common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

3-
var encode = require('./encode');
4-
var decode = require('./decode');
3+
var encode = require('mdurl').encode;
4+
var decode = require('mdurl').decode;
55

66
var C_BACKSLASH = 92;
77

lib/decode.js

-124
This file was deleted.

lib/encode.js

-100
This file was deleted.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"scripts": { "test": "node ./test/test.js" },
1919
"dependencies": {
2020
"entities": "~ 1.1.1",
21+
"mdurl": "~ 1.0.0"
2122
},
2223
"directories": {
2324
"lib": "./lib"

0 commit comments

Comments
 (0)