nodebb-plugin-markdown 13.0.0-pre.2 → 13.0.0-pre.3
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 +4 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -181,7 +181,10 @@ const Markdown = {
|
|
|
181
181
|
images: new Map(),
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
if (
|
|
184
|
+
if (
|
|
185
|
+
activitypub.helpers.isUri(data.postData.pid) &&
|
|
186
|
+
(!data.postData.hasOwnProperty('sourceContent') || !data.postData.sourceContent)
|
|
187
|
+
) {
|
|
185
188
|
// content contained is likely already html, bypass parsing
|
|
186
189
|
env.parse = false;
|
|
187
190
|
}
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-markdown",
|
|
3
|
-
"version": "13.0.0-pre.
|
|
3
|
+
"version": "13.0.0-pre.3",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-plugin-markdown",
|
|
9
|
-
"version": "13.0.0-pre.
|
|
9
|
+
"version": "13.0.0-pre.3",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"highlight.js": "11.4.0",
|