nodebb-plugin-markdown 13.0.0 → 13.1.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/index.js CHANGED
@@ -166,7 +166,9 @@ const Markdown = {
166
166
 
167
167
  ({ env } = await plugins.hooks.fire('filter:markdown.beforeParse', { env, data: Object.freeze({ ...data }) }));
168
168
 
169
- if (activitypub.helpers.isUri(data.postData.pid)) {
169
+ if (data.type === 'markdown') {
170
+ env.parse = false;
171
+ } else if (activitypub.helpers.isUri(data.postData.pid)) {
170
172
  if (data.postData.sourceContent) {
171
173
  data.content = data.sourceContent;
172
174
  delete data.sourceContent;
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-plugin-markdown",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-plugin-markdown",
9
- "version": "13.0.0",
9
+ "version": "13.1.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "highlight.js": "11.4.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-markdown",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "A Markdown parser for NodeBB",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "markdown-it-multimd-table": "^4.0.1"
37
37
  },
38
38
  "nbbpm": {
39
- "compatibility": "^4.0.0"
39
+ "compatibility": "^4.1.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@commitlint/cli": "16.2.1",