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 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
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ import serverConfig from 'eslint-config-nodebb';
4
+ import publicConfig from 'eslint-config-nodebb/public';
5
+
6
+ export default [
7
+ ...publicConfig,
8
+ ...serverConfig,
9
+ ];
10
+
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