nodebb-plugin-markdown 12.2.8 → 12.2.9

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
@@ -7,9 +7,7 @@ const path = require('path');
7
7
  const nconf = require.main.require('nconf');
8
8
  const winston = require.main.require('winston');
9
9
  const meta = require.main.require('./src/meta');
10
- const translator = require.main.require('./src/translator');
11
10
  const plugins = require.main.require('./src/plugins');
12
- const cacheCreate = require.main.require('./src/cacheCreate');
13
11
 
14
12
  const SocketPlugins = require.main.require('./src/socket.io/plugins');
15
13
  SocketPlugins.markdown = require('./websockets');
@@ -194,10 +192,8 @@ const Markdown = {
194
192
  },
195
193
 
196
194
  renderHelp: async function (helpContent) {
197
- const translated = await translator.translate('[[markdown:help-text]]');
198
- const parsed = await plugins.hooks.fire('filter:parse.raw', `## Markdown\n${translated}`);
199
195
  const html = await app.renderAsync('modals/markdown-help', {});
200
- helpContent += parsed + html;
196
+ helpContent += html;
201
197
  return helpContent;
202
198
  },
203
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-markdown",
3
- "version": "12.2.8",
3
+ "version": "12.2.9",
4
4
  "description": "A Markdown parser for NodeBB",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -33,8 +33,7 @@
33
33
  "highlightjs-line-numbers.js": "^2.8.0",
34
34
  "markdown-it": "^12.0.6",
35
35
  "markdown-it-checkbox": "^1.1.0",
36
- "markdown-it-multimd-table": "^4.0.1",
37
- "probe-image-size": "^7.2.1"
36
+ "markdown-it-multimd-table": "^4.0.1"
38
37
  },
39
38
  "nbbpm": {
40
39
  "compatibility": "^3.0.0"
@@ -8,5 +8,5 @@
8
8
  "link-url": "Link Adresse",
9
9
  "picture-text": "Bild Text",
10
10
  "picture-url": "Bild Link",
11
- "help-text": "Dieses Forum unterstützt Markdown. Für mehr Informationen, [hier klicken](http://commonmark.org/help/)"
11
+ "help-text": "Dieses Forum unterstützt Markdown. <a href=\"http://commonmark.org/help/\" class=\"text-decoration-underline\">Für mehr Informationen, hier klicken.</a>"
12
12
  }
@@ -9,5 +9,5 @@
9
9
  "link-url": "link url",
10
10
  "picture-text": "alt text",
11
11
  "picture-url": "image url",
12
- "help-text": "This forum is powered by Markdown. For full documentation, [click here](http://commonmark.org/help/)"
12
+ "help-text": "This forum is powered by Markdown. <a href=\"http://commonmark.org/help/\" class=\"text-decoration-underline\">For full documentation, click here.</a>"
13
13
  }
@@ -7,5 +7,5 @@
7
7
  "link-url": "url du lien",
8
8
  "picture-text": "text alternatif",
9
9
  "picture-url": "url de l'image",
10
- "help-text": "Ce forum utilise la syntaxe Markdown. Pour accéder à la documentation, suivre ce [lien](http://commonmark.org/help/)"
10
+ "help-text": "Ce forum utilise la syntaxe Markdown. <a href=\"http://commonmark.org/help/\" class=\"text-decoration-underline\">Pour accéder à la documentation, suivre ce lien.</a>"
11
11
  }
@@ -7,5 +7,5 @@
7
7
  "link-url": "url odnośnika",
8
8
  "picture-text": "text alternatywny",
9
9
  "picture-url": "url obrazu",
10
- "help-text": "Forum działa dzięki Markdown. By uzyskać pełną dokumentację, [kliknij tutaj](http://commonmark.org/help/)"
10
+ "help-text": "Forum działa dzięki Markdown. <a href=\"http://commonmark.org/help/\" class=\"text-decoration-underline\">By uzyskać pełną dokumentację, kliknij tutaj.</a>"
11
11
  }
@@ -7,5 +7,5 @@
7
7
  "link-url": "Адрес ссылки",
8
8
  "picture-text": "Описание",
9
9
  "picture-url": "URL-адрес изображения",
10
- "help-text": "Этот форум работает на основе Markdown. Для получения полной документации [перейдите на сайт](http://commonmark.org/help/)"
10
+ "help-text": "Этот форум работает на основе Markdown. <a href=\"http://commonmark.org/help/\" class=\"text-decoration-underline\">Для получения полной документации перейдите на сайт.</a>"
11
11
  }
@@ -7,5 +7,5 @@
7
7
  "link-url": "link url",
8
8
  "picture-text": "alt metni",
9
9
  "picture-url": "görsel url",
10
- "help-text": "This forum is powered by Markdown. For full documentation, [click here](http://commonmark.org/help/)"
10
+ "help-text": "This forum is powered by Markdown. <a href=\"http://commonmark.org/help/\" class=\"text-decoration-underline\">For full documentation, click here.</a>"
11
11
  }
@@ -1,3 +1,6 @@
1
+ <h2>Markdown</h2>
2
+ <p>[[markdown:help-text]]</p>
3
+
1
4
  <table class="table markdown-reference">
2
5
  <thead>
3
6
  <tr>