marked-images 2.4.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2015-2020 Jürgen Leschner -- github.com/jldec
3
+ Copyright (c) 2015-2022 Jürgen Leschner -- github.com/jldec
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -11,8 +11,11 @@ npm install marked-images
11
11
  ```
12
12
 
13
13
  ## usage
14
- *NOTE: breaking change:*
15
- As of v2.0.0, this library uses the [`marked.use()`](https://marked.js.org/#/USING_PRO.md#use) plugin api.
14
+
15
+ *NOTE: breaking changes:*
16
+
17
+ - As of v2.0.0, this library uses the [`marked.use()`](https://marked.js.org/#/USING_PRO.md#use) plugin api.
18
+ - As of v3.0.0, since [marked v4.x](https://github.com/markedjs/marked/releases/tag/v4.0.0) the `marked()` function is no longer the default export. CommonJS code which does `marked = require(marked)` should be changed to call `marked.marked(<markdown-string>)` instead of `marked()`.
16
19
 
17
20
  ```javascript
18
21
  var marked = require('marked');
@@ -29,7 +32,7 @@ var opts = {
29
32
 
30
33
  marked.use(markedImages(opts));
31
34
 
32
- var html = marked(markdown);
35
+ var html = marked.marked(markdown);
33
36
  ```
34
37
 
35
38
  #### simple width and height
package/marked-images.js CHANGED
@@ -15,7 +15,7 @@
15
15
  * usage: marked.use(markedImages(opts))
16
16
  *
17
17
  * original function: copyright Christopher Jeffrey -- https://github.com/markedjs/marked (MIT License)
18
- * extension copyright 2015-2020, Jürgen Leschner - github.com/jldec/ - MIT license
18
+ * extension Copyright (c) 2015-2022 Jürgen Leschner - github.com/jldec/ - MIT license
19
19
  *
20
20
  **/
21
21
 
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "marked-images",
3
- "version": "2.4.0",
3
+ "version": "3.0.0",
4
4
  "description": "Simple marked renderer for image attributes in markdown. Also generates vimeo links.",
5
5
  "main": "marked-images.js",
6
6
  "peerDependencies": {
7
- "marked": "^3.0.2"
7
+ "marked": "^4.0.10"
8
8
  },
9
9
  "dependencies": {
10
10
  "lodash.startswith": "^4.2.1"
11
11
  },
12
12
  "devDependencies": {
13
- "eslint": "^7.32.0",
14
- "marked": "^3.0.2",
15
- "tape": "^5.3.1"
13
+ "eslint": "^8.7.0",
14
+ "marked": "^4.0.10",
15
+ "tape": "^5.4.1"
16
16
  },
17
17
  "files": [
18
18
  "marked-images.js"