nodebb-plugin-markdown 13.1.1 → 13.2.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/README.md +9 -9
- package/eslint.config.mjs +10 -0
- package/index.js +0 -3
- package/package-lock.json +4868 -0
- package/package.json +9 -6
- package/public/js/admin.js +2 -2
- package/public/js/client.js +1 -1
- package/public/js/markdown.js +13 -5
- package/public/languages/de/markdown.json +12 -12
- package/public/languages/en-GB/markdown.json +12 -12
- package/public/languages/fa-IR/markdown.json +11 -11
- package/public/languages/fr/markdown.json +11 -11
- package/public/languages/he/markdown.json +12 -12
- package/public/languages/pl/markdown.json +11 -11
- package/public/languages/tr/markdown.json +11 -11
- package/public/languages/zh-CN/markdown.json +11 -11
- package/websockets.js +1 -1
- package/.eslintrc +0 -3
- package/.jshintrc +0 -86
- package/public/js/.eslintrc +0 -3
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# NodeBB Markdown Parser
|
|
2
|
-
|
|
3
|
-
This NodeBB plugin is a parser that allows users to write posts using [Markdown](https://daringfireball.net/projects/markdown/).
|
|
4
|
-
|
|
5
|
-
To customise options for the parser, please consult the "Markdown" page in the administration panel, under the "Plugins" heading.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
npm install nodebb-plugin-markdown
|
|
1
|
+
# NodeBB Markdown Parser
|
|
2
|
+
|
|
3
|
+
This NodeBB plugin is a parser that allows users to write posts using [Markdown](https://daringfireball.net/projects/markdown/).
|
|
4
|
+
|
|
5
|
+
To customise options for the parser, please consult the "Markdown" page in the administration panel, under the "Plugins" heading.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
npm install nodebb-plugin-markdown
|
package/index.js
CHANGED
|
@@ -283,15 +283,12 @@ const Markdown = {
|
|
|
283
283
|
|
|
284
284
|
// Update renderer to add some classes to all images
|
|
285
285
|
const renderImage = parser.renderer.rules.image || function (tokens, idx, options, env, self) {
|
|
286
|
-
// eslint-disable-next-line prefer-spread,prefer-rest-params
|
|
287
286
|
return self.renderToken.apply(self, arguments);
|
|
288
287
|
};
|
|
289
288
|
const renderLink = parser.renderer.rules.link_open || function (tokens, idx, options, env, self) {
|
|
290
|
-
// eslint-disable-next-line prefer-spread,prefer-rest-params
|
|
291
289
|
return self.renderToken.apply(self, arguments);
|
|
292
290
|
};
|
|
293
291
|
const renderTable = parser.renderer.rules.table_open || function (tokens, idx, options, env, self) {
|
|
294
|
-
// eslint-disable-next-line prefer-spread,prefer-rest-params
|
|
295
292
|
return self.renderToken.apply(self, arguments);
|
|
296
293
|
};
|
|
297
294
|
|