nodebb-plugin-markdown 12.2.0 → 12.2.1
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/index.js +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -343,7 +343,7 @@ const Markdown = {
|
|
|
343
343
|
parser.renderer.rules.image = function (tokens, idx, options, env, self) {
|
|
344
344
|
const token = tokens[idx];
|
|
345
345
|
const attributes = new Map(token.attrs);
|
|
346
|
-
const parsedSrc = new URL(attributes.get('src'));
|
|
346
|
+
const parsedSrc = new URL(attributes.get('src'), nconf.get('url'));
|
|
347
347
|
|
|
348
348
|
// Validate the url
|
|
349
349
|
if (!Markdown.isUrlValid(attributes.get('src'))) { return ''; }
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-markdown",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-plugin-markdown",
|
|
9
|
-
"version": "12.2.
|
|
9
|
+
"version": "12.2.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"highlight.js": "11.4.0",
|