nodebb-plugin-markdown 11.1.0 → 12.0.1
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/.jshintrc +85 -85
- package/README.md +9 -9
- package/index.js +3 -15
- package/package.json +1 -1
- package/public/js/admin.js +0 -1
- package/public/js/client.js +28 -8
- package/public/languages/de/markdown.json +11 -11
- package/public/languages/en-GB/markdown.json +11 -11
- 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/public/templates/admin/plugins/markdown.tpl +3 -23
package/.jshintrc
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
// JSHint Default Configuration File (as on JSHint website)
|
|
3
|
-
// See http://jshint.com/docs/ for more details
|
|
4
|
-
|
|
5
|
-
"maxerr" : 50, // {int} Maximum error before stopping
|
|
6
|
-
|
|
7
|
-
// Enforcing
|
|
8
|
-
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
|
|
9
|
-
"camelcase" : false, // true: Identifiers must be in camelCase
|
|
10
|
-
"curly" : true, // true: Require {} for every new block or scope
|
|
11
|
-
"eqeqeq" : true, // true: Require triple equals (===) for comparison
|
|
12
|
-
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
|
|
13
|
-
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
|
|
14
|
-
"indent" : 4, // {int} Number of spaces to use for indentation
|
|
15
|
-
"latedef" : false, // true: Require variables/functions to be defined before being used
|
|
16
|
-
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
|
|
17
|
-
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
|
|
18
|
-
"noempty" : true, // true: Prohibit use of empty blocks
|
|
19
|
-
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
|
|
20
|
-
"plusplus" : false, // true: Prohibit use of `++` & `--`
|
|
21
|
-
"quotmark" : false, // Quotation mark consistency:
|
|
22
|
-
// false : do nothing (default)
|
|
23
|
-
// true : ensure whatever is used is consistent
|
|
24
|
-
// "single" : require single quotes
|
|
25
|
-
// "double" : require double quotes
|
|
26
|
-
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
|
|
27
|
-
"unused" : true, // true: Require all defined variables be used
|
|
28
|
-
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
|
|
29
|
-
"trailing" : false, // true: Prohibit trailing whitespaces
|
|
30
|
-
"maxparams" : false, // {int} Max number of formal params allowed per function
|
|
31
|
-
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
|
|
32
|
-
"maxstatements" : false, // {int} Max number statements per function
|
|
33
|
-
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
|
|
34
|
-
"maxlen" : false, // {int} Max number of characters per line
|
|
35
|
-
|
|
36
|
-
// Relaxing
|
|
37
|
-
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
|
38
|
-
"boss" : false, // true: Tolerate assignments where comparisons would be expected
|
|
39
|
-
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
|
|
40
|
-
"eqnull" : false, // true: Tolerate use of `== null`
|
|
41
|
-
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
|
|
42
|
-
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
|
|
43
|
-
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
|
|
44
|
-
// (ex: `for each`, multiple try/catch, function expression…)
|
|
45
|
-
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
|
|
46
|
-
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
|
|
47
|
-
"funcscope" : false, // true: Tolerate defining variables inside control statements"
|
|
48
|
-
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
|
|
49
|
-
"iterator" : false, // true: Tolerate using the `__iterator__` property
|
|
50
|
-
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
|
|
51
|
-
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
|
|
52
|
-
"laxcomma" : false, // true: Tolerate comma-first style coding
|
|
53
|
-
"loopfunc" : false, // true: Tolerate functions being defined in loops
|
|
54
|
-
"multistr" : false, // true: Tolerate multi-line strings
|
|
55
|
-
"proto" : false, // true: Tolerate using the `__proto__` property
|
|
56
|
-
"scripturl" : false, // true: Tolerate script-targeted URLs
|
|
57
|
-
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
|
|
58
|
-
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
|
|
59
|
-
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
|
|
60
|
-
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
|
|
61
|
-
"validthis" : false, // true: Tolerate using this in a non-constructor function
|
|
62
|
-
|
|
63
|
-
// Environments
|
|
64
|
-
"browser" : true, // Web Browser (window, document, etc)
|
|
65
|
-
"couch" : false, // CouchDB
|
|
66
|
-
"devel" : true, // Development/debugging (alert, confirm, etc)
|
|
67
|
-
"dojo" : false, // Dojo Toolkit
|
|
68
|
-
"jquery" : true, // jQuery
|
|
69
|
-
"mootools" : false, // MooTools
|
|
70
|
-
"node" : true, // Node.js
|
|
71
|
-
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
|
|
72
|
-
"prototypejs" : false, // Prototype and Scriptaculous
|
|
73
|
-
"rhino" : false, // Rhino
|
|
74
|
-
"worker" : false, // Web Workers
|
|
75
|
-
"wsh" : false, // Windows Scripting Host
|
|
76
|
-
"yui" : false, // Yahoo User Interface
|
|
77
|
-
|
|
78
|
-
// Legacy
|
|
79
|
-
"nomen" : false, // true: Prohibit dangling `_` in variables
|
|
80
|
-
"onevar" : false, // true: Allow only one `var` statement per function
|
|
81
|
-
"passfail" : false, // true: Stop on first error
|
|
82
|
-
"white" : false, // true: Check against strict whitespace and indentation rules
|
|
83
|
-
|
|
84
|
-
// Custom Globals
|
|
85
|
-
"globals" : {} // additional predefined global variables
|
|
1
|
+
{
|
|
2
|
+
// JSHint Default Configuration File (as on JSHint website)
|
|
3
|
+
// See http://jshint.com/docs/ for more details
|
|
4
|
+
|
|
5
|
+
"maxerr" : 50, // {int} Maximum error before stopping
|
|
6
|
+
|
|
7
|
+
// Enforcing
|
|
8
|
+
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
|
|
9
|
+
"camelcase" : false, // true: Identifiers must be in camelCase
|
|
10
|
+
"curly" : true, // true: Require {} for every new block or scope
|
|
11
|
+
"eqeqeq" : true, // true: Require triple equals (===) for comparison
|
|
12
|
+
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
|
|
13
|
+
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
|
|
14
|
+
"indent" : 4, // {int} Number of spaces to use for indentation
|
|
15
|
+
"latedef" : false, // true: Require variables/functions to be defined before being used
|
|
16
|
+
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
|
|
17
|
+
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
|
|
18
|
+
"noempty" : true, // true: Prohibit use of empty blocks
|
|
19
|
+
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
|
|
20
|
+
"plusplus" : false, // true: Prohibit use of `++` & `--`
|
|
21
|
+
"quotmark" : false, // Quotation mark consistency:
|
|
22
|
+
// false : do nothing (default)
|
|
23
|
+
// true : ensure whatever is used is consistent
|
|
24
|
+
// "single" : require single quotes
|
|
25
|
+
// "double" : require double quotes
|
|
26
|
+
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
|
|
27
|
+
"unused" : true, // true: Require all defined variables be used
|
|
28
|
+
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
|
|
29
|
+
"trailing" : false, // true: Prohibit trailing whitespaces
|
|
30
|
+
"maxparams" : false, // {int} Max number of formal params allowed per function
|
|
31
|
+
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
|
|
32
|
+
"maxstatements" : false, // {int} Max number statements per function
|
|
33
|
+
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
|
|
34
|
+
"maxlen" : false, // {int} Max number of characters per line
|
|
35
|
+
|
|
36
|
+
// Relaxing
|
|
37
|
+
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
|
38
|
+
"boss" : false, // true: Tolerate assignments where comparisons would be expected
|
|
39
|
+
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
|
|
40
|
+
"eqnull" : false, // true: Tolerate use of `== null`
|
|
41
|
+
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
|
|
42
|
+
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
|
|
43
|
+
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
|
|
44
|
+
// (ex: `for each`, multiple try/catch, function expression…)
|
|
45
|
+
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
|
|
46
|
+
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
|
|
47
|
+
"funcscope" : false, // true: Tolerate defining variables inside control statements"
|
|
48
|
+
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
|
|
49
|
+
"iterator" : false, // true: Tolerate using the `__iterator__` property
|
|
50
|
+
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
|
|
51
|
+
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
|
|
52
|
+
"laxcomma" : false, // true: Tolerate comma-first style coding
|
|
53
|
+
"loopfunc" : false, // true: Tolerate functions being defined in loops
|
|
54
|
+
"multistr" : false, // true: Tolerate multi-line strings
|
|
55
|
+
"proto" : false, // true: Tolerate using the `__proto__` property
|
|
56
|
+
"scripturl" : false, // true: Tolerate script-targeted URLs
|
|
57
|
+
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
|
|
58
|
+
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
|
|
59
|
+
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
|
|
60
|
+
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
|
|
61
|
+
"validthis" : false, // true: Tolerate using this in a non-constructor function
|
|
62
|
+
|
|
63
|
+
// Environments
|
|
64
|
+
"browser" : true, // Web Browser (window, document, etc)
|
|
65
|
+
"couch" : false, // CouchDB
|
|
66
|
+
"devel" : true, // Development/debugging (alert, confirm, etc)
|
|
67
|
+
"dojo" : false, // Dojo Toolkit
|
|
68
|
+
"jquery" : true, // jQuery
|
|
69
|
+
"mootools" : false, // MooTools
|
|
70
|
+
"node" : true, // Node.js
|
|
71
|
+
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
|
|
72
|
+
"prototypejs" : false, // Prototype and Scriptaculous
|
|
73
|
+
"rhino" : false, // Rhino
|
|
74
|
+
"worker" : false, // Web Workers
|
|
75
|
+
"wsh" : false, // Windows Scripting Host
|
|
76
|
+
"yui" : false, // Yahoo User Interface
|
|
77
|
+
|
|
78
|
+
// Legacy
|
|
79
|
+
"nomen" : false, // true: Prohibit dangling `_` in variables
|
|
80
|
+
"onevar" : false, // true: Allow only one `var` statement per function
|
|
81
|
+
"passfail" : false, // true: Stop on first error
|
|
82
|
+
"white" : false, // true: Check against strict whitespace and indentation rules
|
|
83
|
+
|
|
84
|
+
// Custom Globals
|
|
85
|
+
"globals" : {} // additional predefined global variables
|
|
86
86
|
}
|
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
|
@@ -44,7 +44,7 @@ const Markdown = {
|
|
|
44
44
|
},
|
|
45
45
|
|
|
46
46
|
getConfig: async (config) => {
|
|
47
|
-
let { defaultHighlightLanguage, highlightTheme, hljsLanguages } = await meta.settings.get('markdown');
|
|
47
|
+
let { defaultHighlightLanguage, highlightTheme, hljsLanguages, highlightLinesLanguageList } = await meta.settings.get('markdown');
|
|
48
48
|
|
|
49
49
|
try {
|
|
50
50
|
hljsLanguages = JSON.parse(hljsLanguages);
|
|
@@ -54,7 +54,7 @@ const Markdown = {
|
|
|
54
54
|
|
|
55
55
|
config.markdown = {
|
|
56
56
|
highlight: Markdown.highlight ? 1 : 0,
|
|
57
|
-
highlightLinesLanguageList
|
|
57
|
+
highlightLinesLanguageList,
|
|
58
58
|
hljsLanguages,
|
|
59
59
|
theme: highlightTheme || 'default.css',
|
|
60
60
|
defaultHighlightLanguage: defaultHighlightLanguage || '',
|
|
@@ -86,7 +86,6 @@ const Markdown = {
|
|
|
86
86
|
|
|
87
87
|
langPrefix: 'language-',
|
|
88
88
|
highlight: true,
|
|
89
|
-
highlightLinesLanguageList: [],
|
|
90
89
|
highlightTheme: 'default.css',
|
|
91
90
|
|
|
92
91
|
probe: true,
|
|
@@ -102,7 +101,7 @@ const Markdown = {
|
|
|
102
101
|
checkboxes: true,
|
|
103
102
|
multimdTables: true,
|
|
104
103
|
};
|
|
105
|
-
const notCheckboxes = ['langPrefix', 'highlightTheme', '
|
|
104
|
+
const notCheckboxes = ['langPrefix', 'highlightTheme', 'probeCacheSize'];
|
|
106
105
|
|
|
107
106
|
meta.settings.get('markdown', (err, options) => {
|
|
108
107
|
if (err) {
|
|
@@ -123,17 +122,6 @@ const Markdown = {
|
|
|
123
122
|
_self.highlight = _self.config.highlight;
|
|
124
123
|
delete _self.config.highlight;
|
|
125
124
|
|
|
126
|
-
if (typeof _self.config.highlightLinesLanguageList === 'string') {
|
|
127
|
-
try {
|
|
128
|
-
_self.config.highlightLinesLanguageList = JSON.parse(_self.config.highlightLinesLanguageList);
|
|
129
|
-
} catch (e) {
|
|
130
|
-
winston.warn('[plugins/markdown] Invalid config for highlightLinesLanguageList, blanking.');
|
|
131
|
-
_self.config.highlightLinesLanguageList = [];
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
_self.config.highlightLinesLanguageList = _self.config.highlightLinesLanguageList.join(',').split(',');
|
|
135
|
-
}
|
|
136
|
-
|
|
137
125
|
parser = new MarkdownIt(_self.config);
|
|
138
126
|
|
|
139
127
|
Markdown.updateParserRules(parser);
|
package/package.json
CHANGED
package/public/js/admin.js
CHANGED
package/public/js/client.js
CHANGED
|
@@ -243,6 +243,7 @@
|
|
|
243
243
|
console.debug('[plugin/markdown] Initializing highlight.js');
|
|
244
244
|
let hljs;
|
|
245
245
|
let list;
|
|
246
|
+
let aliasMap = new Map();
|
|
246
247
|
switch(true) {
|
|
247
248
|
case config.markdown.hljsLanguages.includes('common'): {
|
|
248
249
|
({ default: hljs} = await import(`highlight.js/lib/common`));
|
|
@@ -261,6 +262,7 @@
|
|
|
261
262
|
list = 'core';
|
|
262
263
|
}
|
|
263
264
|
}
|
|
265
|
+
console.debug(`[plugins/markdown] Loaded ${list} hljs library`);
|
|
264
266
|
|
|
265
267
|
if (list !== 'all') {
|
|
266
268
|
await Promise.all(config.markdown.hljsLanguages.map(async (language) => {
|
|
@@ -274,12 +276,28 @@
|
|
|
274
276
|
}));
|
|
275
277
|
}
|
|
276
278
|
|
|
279
|
+
// Build alias set
|
|
280
|
+
hljs.listLanguages().forEach((language) => {
|
|
281
|
+
const { aliases } = hljs.getLanguage(language);
|
|
282
|
+
if (aliases && Array.isArray(aliases)) {
|
|
283
|
+
aliases.forEach((alias) => {
|
|
284
|
+
aliasMap.set(alias, language);
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
aliasMap.set(language, language);
|
|
289
|
+
});
|
|
290
|
+
|
|
277
291
|
console.debug(`[plugins/markdown] Loading support for line numbers`);
|
|
278
292
|
window.hljs = hljs;
|
|
279
293
|
require('highlightjs-line-numbers.js');
|
|
280
294
|
|
|
281
295
|
elements.each(function (i, block) {
|
|
282
|
-
$(block.parentNode)
|
|
296
|
+
const parentNode = $(block.parentNode);
|
|
297
|
+
if (parentNode.hasClass('markdown-highlight')) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
parentNode.addClass('markdown-highlight');
|
|
283
301
|
|
|
284
302
|
// Default language if set in ACP
|
|
285
303
|
if (!Array.prototype.some.call(block.classList, (className) => className.startsWith('language-')) && config.markdown.defaultHighlightLanguage) {
|
|
@@ -289,14 +307,16 @@
|
|
|
289
307
|
window.hljs.highlightElement(block);
|
|
290
308
|
|
|
291
309
|
// Check detected language against whitelist and add lines if enabled
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
310
|
+
const classIterator = block.classList.values();
|
|
311
|
+
for(className of classIterator) {
|
|
312
|
+
if (className.startsWith('language-')) {
|
|
313
|
+
const language = className.split('-')[1];
|
|
314
|
+
if (aliasMap.has(language) && config.markdown.highlightLinesLanguageList.includes(aliasMap.get(language))) {
|
|
315
|
+
$(block).attr('data-lines', 1);
|
|
316
|
+
window.hljs.lineNumbersBlock(block);
|
|
317
|
+
}
|
|
318
|
+
break;
|
|
295
319
|
}
|
|
296
|
-
return config.markdown.highlightLinesLanguageList.includes(className) || config.markdown.highlightLinesLanguageList.includes(className);
|
|
297
|
-
}).some(Boolean)) {
|
|
298
|
-
$(block).attr('data-lines', 1);
|
|
299
|
-
window.hljs.lineNumbersBlock(block);
|
|
300
320
|
}
|
|
301
321
|
});
|
|
302
322
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "Fettschrift",
|
|
3
|
-
"italic": "Kursivschrift",
|
|
4
|
-
"list_item": "Listenpunkt",
|
|
5
|
-
"strikethrough_text": "Durchgestrichen",
|
|
6
|
-
"link_text": "Link Text",
|
|
7
|
-
"link_url": "Link Adresse",
|
|
8
|
-
"picture_text": "Bild Text",
|
|
9
|
-
"picture_url": "Bild Link",
|
|
10
|
-
"help_text": "Dieses Forum unterstützt Markdown. Für mehr Informationen, [hier klicken](http://commonmark.org/help/)"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "Fettschrift",
|
|
3
|
+
"italic": "Kursivschrift",
|
|
4
|
+
"list_item": "Listenpunkt",
|
|
5
|
+
"strikethrough_text": "Durchgestrichen",
|
|
6
|
+
"link_text": "Link Text",
|
|
7
|
+
"link_url": "Link Adresse",
|
|
8
|
+
"picture_text": "Bild Text",
|
|
9
|
+
"picture_url": "Bild Link",
|
|
10
|
+
"help_text": "Dieses Forum unterstützt Markdown. Für mehr Informationen, [hier klicken](http://commonmark.org/help/)"
|
|
11
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "bolded text",
|
|
3
|
-
"italic": "italicised text",
|
|
4
|
-
"list_item": "list item",
|
|
5
|
-
"strikethrough_text": "strikethrough text",
|
|
6
|
-
"code_text": "code_text",
|
|
7
|
-
"link_text": "link text",
|
|
8
|
-
"link_url": "link url",
|
|
9
|
-
"picture_text": "alt text",
|
|
10
|
-
"picture_url": "image url",
|
|
11
|
-
"help_text": "This forum is powered by Markdown. For full documentation, [click here](http://commonmark.org/help/)"
|
|
1
|
+
{
|
|
2
|
+
"bold": "bolded text",
|
|
3
|
+
"italic": "italicised text",
|
|
4
|
+
"list_item": "list item",
|
|
5
|
+
"strikethrough_text": "strikethrough text",
|
|
6
|
+
"code_text": "code_text",
|
|
7
|
+
"link_text": "link text",
|
|
8
|
+
"link_url": "link url",
|
|
9
|
+
"picture_text": "alt text",
|
|
10
|
+
"picture_url": "image url",
|
|
11
|
+
"help_text": "This forum is powered by Markdown. For full documentation, [click here](http://commonmark.org/help/)"
|
|
12
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "متن پررنگ",
|
|
3
|
-
"italic": "متن ایتالیک ( کج )",
|
|
4
|
-
"list_item": "لیست",
|
|
5
|
-
"strikethrough_text": "متن خط خورده",
|
|
6
|
-
"link_text": "متن لینک",
|
|
7
|
-
"link_url": "آدرس لینک",
|
|
8
|
-
"picture_text": "متن جایگزین",
|
|
9
|
-
"picture_url": "آدرس عکس",
|
|
10
|
-
"help_text": "این انجمن از زبان مارک دون استفاده می کند، برای اطلاعات بیشتر [اینجا](http://commonmark.org/help/) کلیک کنید!"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "متن پررنگ",
|
|
3
|
+
"italic": "متن ایتالیک ( کج )",
|
|
4
|
+
"list_item": "لیست",
|
|
5
|
+
"strikethrough_text": "متن خط خورده",
|
|
6
|
+
"link_text": "متن لینک",
|
|
7
|
+
"link_url": "آدرس لینک",
|
|
8
|
+
"picture_text": "متن جایگزین",
|
|
9
|
+
"picture_url": "آدرس عکس",
|
|
10
|
+
"help_text": "این انجمن از زبان مارک دون استفاده می کند، برای اطلاعات بیشتر [اینجا](http://commonmark.org/help/) کلیک کنید!"
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "texte en gras",
|
|
3
|
-
"italic": "texte en italique",
|
|
4
|
-
"list_item": "élément de liste",
|
|
5
|
-
"strikethrough_text": "strikethrough text",
|
|
6
|
-
"link_text": "texte du lien",
|
|
7
|
-
"link_url": "url du lien",
|
|
8
|
-
"picture_text": "text alternatif",
|
|
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/)"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "texte en gras",
|
|
3
|
+
"italic": "texte en italique",
|
|
4
|
+
"list_item": "élément de liste",
|
|
5
|
+
"strikethrough_text": "strikethrough text",
|
|
6
|
+
"link_text": "texte du lien",
|
|
7
|
+
"link_url": "url du lien",
|
|
8
|
+
"picture_text": "text alternatif",
|
|
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/)"
|
|
11
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "טקסט מודגש",
|
|
3
|
-
"italic": "טקסט נטוי",
|
|
4
|
-
"list_item": "פריט רשימה",
|
|
5
|
-
"strikethrough_text": "קו חוצה",
|
|
6
|
-
"code_text": "קוד",
|
|
7
|
-
"link_text": "טקסט קישור",
|
|
8
|
-
"link_url": "כתובת קישור",
|
|
9
|
-
"picture_text": "כיתוב בבעיות טעינה",
|
|
10
|
-
"picture_url": "כתובת תמונה",
|
|
11
|
-
"help_text": "הפורום עובד עם Markdown. להסבר מלא, [לחץ כאן](http://commonmark.org/help/)"
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "טקסט מודגש",
|
|
3
|
+
"italic": "טקסט נטוי",
|
|
4
|
+
"list_item": "פריט רשימה",
|
|
5
|
+
"strikethrough_text": "קו חוצה",
|
|
6
|
+
"code_text": "קוד",
|
|
7
|
+
"link_text": "טקסט קישור",
|
|
8
|
+
"link_url": "כתובת קישור",
|
|
9
|
+
"picture_text": "כיתוב בבעיות טעינה",
|
|
10
|
+
"picture_url": "כתובת תמונה",
|
|
11
|
+
"help_text": "הפורום עובד עם Markdown. להסבר מלא, [לחץ כאן](http://commonmark.org/help/)"
|
|
12
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "pogrubienie",
|
|
3
|
-
"italic": "pochylenie",
|
|
4
|
-
"list_item": "wypunktowanie",
|
|
5
|
-
"strikethrough_text": "przekreślenie",
|
|
6
|
-
"link_text": "tekst odnośnika",
|
|
7
|
-
"link_url": "url odnośnika",
|
|
8
|
-
"picture_text": "text alternatywny",
|
|
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/)"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "pogrubienie",
|
|
3
|
+
"italic": "pochylenie",
|
|
4
|
+
"list_item": "wypunktowanie",
|
|
5
|
+
"strikethrough_text": "przekreślenie",
|
|
6
|
+
"link_text": "tekst odnośnika",
|
|
7
|
+
"link_url": "url odnośnika",
|
|
8
|
+
"picture_text": "text alternatywny",
|
|
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/)"
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "kalın yazı",
|
|
3
|
-
"italic": "İtalik yazı",
|
|
4
|
-
"list_item": "liste madde",
|
|
5
|
-
"strikethrough_text": "Üstü çizili metin",
|
|
6
|
-
"link_text": "bağlantı metni",
|
|
7
|
-
"link_url": "link url",
|
|
8
|
-
"picture_text": "alt metni",
|
|
9
|
-
"picture_url": "görsel url",
|
|
10
|
-
"help_text": "This forum is powered by Markdown. For full documentation, [click here](http://commonmark.org/help/)"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "kalın yazı",
|
|
3
|
+
"italic": "İtalik yazı",
|
|
4
|
+
"list_item": "liste madde",
|
|
5
|
+
"strikethrough_text": "Üstü çizili metin",
|
|
6
|
+
"link_text": "bağlantı metni",
|
|
7
|
+
"link_url": "link url",
|
|
8
|
+
"picture_text": "alt metni",
|
|
9
|
+
"picture_url": "görsel url",
|
|
10
|
+
"help_text": "This forum is powered by Markdown. For full documentation, [click here](http://commonmark.org/help/)"
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bold": "粗体字",
|
|
3
|
-
"italic": "斜体字",
|
|
4
|
-
"list_item": "列表",
|
|
5
|
-
"strikethrough_text": "删除线",
|
|
6
|
-
"link_text": "链接文本",
|
|
7
|
-
"link_url": "链接地址",
|
|
8
|
-
"picture_text": "替代文字",
|
|
9
|
-
"picture_url": "图片地址",
|
|
10
|
-
"help_text": "该论坛使用 Markdown 语法。[点此查看](http://commonmark.org/help/) 语法说明。"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bold": "粗体字",
|
|
3
|
+
"italic": "斜体字",
|
|
4
|
+
"list_item": "列表",
|
|
5
|
+
"strikethrough_text": "删除线",
|
|
6
|
+
"link_text": "链接文本",
|
|
7
|
+
"link_url": "链接地址",
|
|
8
|
+
"picture_text": "替代文字",
|
|
9
|
+
"picture_url": "图片地址",
|
|
10
|
+
"help_text": "该论坛使用 Markdown 语法。[点此查看](http://commonmark.org/help/) 语法说明。"
|
|
11
|
+
}
|
|
@@ -131,29 +131,9 @@
|
|
|
131
131
|
Enable line numbers for the following languages
|
|
132
132
|
</label>
|
|
133
133
|
<select class="form-select" multiple="true" name="highlightLinesLanguageList" id="highlightLinesLanguageList" size="20">
|
|
134
|
-
|
|
135
|
-
<option value="
|
|
136
|
-
|
|
137
|
-
<option value="cpp,c,cc,h,c++,h++,hpp">C++</option>
|
|
138
|
-
<option value="css">CSS</option>
|
|
139
|
-
<option value="coffeescript,coffee,cson,iced">CoffeeScript</option>
|
|
140
|
-
<option value="diff,patch">Diff</option>
|
|
141
|
-
<option value="xml,html,xhtml,rss,atom,xjb,xsd,xsl,plist">HTML</option>
|
|
142
|
-
<option value="http,https">HTTP</option>
|
|
143
|
-
<option value="ini,toml">Ini</option>
|
|
144
|
-
<option value="json">JSON</option>
|
|
145
|
-
<option value="java">Java</option>
|
|
146
|
-
<option value="javascript,js,jsx">Javascript</option>
|
|
147
|
-
<option value="makefile,mk,mak">Makefile</option>
|
|
148
|
-
<option value="markdown,md,mkdown,mkd">Markdown</option>
|
|
149
|
-
<option value="nginx,nginxconf">Nginx</option>
|
|
150
|
-
<option value="objectivec,objc,obj-c">Objective C</option>
|
|
151
|
-
<option value="php,php3,php4,php5,php6">PHP</option>
|
|
152
|
-
<option value="perl,pl,pm">Perl</option>
|
|
153
|
-
<option value="python,py,gyp">Python</option>
|
|
154
|
-
<option value="ruby,rb,gemspec,podspec,thor,irb">Ruby</option>
|
|
155
|
-
<option value="sql">SQL</option>
|
|
156
|
-
<option value="shell,console">Shell</option>
|
|
134
|
+
{{{ each hljsLanguages }}}
|
|
135
|
+
<option value="{@value}">{@value}</option>
|
|
136
|
+
{{{ end }}}
|
|
157
137
|
</select>
|
|
158
138
|
<p class="form-text">
|
|
159
139
|
You can use <code>ctrl</code> and <code>shift</code> to select/deselect multiple
|