nodebb-plugin-markdown 10.1.0 → 11.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 +1 -1
- package/package.json +2 -2
- package/plugin.json +2 -2
- 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/{less/default.less → scss/default.scss} +2 -2
- package/public/templates/admin/plugins/markdown.tpl +70 -70
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
|
@@ -350,7 +350,7 @@ const Markdown = {
|
|
|
350
350
|
// Validate the url
|
|
351
351
|
if (!Markdown.isUrlValid(attributes.get('src'))) { return ''; }
|
|
352
352
|
|
|
353
|
-
token.attrSet('class', `${token.attrGet('class') || ''} img-
|
|
353
|
+
token.attrSet('class', `${token.attrGet('class') || ''} img-fluid img-markdown`);
|
|
354
354
|
|
|
355
355
|
// Append sizes to images
|
|
356
356
|
if (parsedSrc.pathname) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-markdown",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "A Markdown parser for NodeBB",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"probe-image-size": "^7.2.1"
|
|
38
38
|
},
|
|
39
39
|
"nbbpm": {
|
|
40
|
-
"compatibility": "^
|
|
40
|
+
"compatibility": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@commitlint/cli": "16.2.1",
|
package/plugin.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"description": "A Markdown parser for NodeBB",
|
|
5
5
|
"url": "https://github.com/julianlam/nodebb-plugin-markdown",
|
|
6
6
|
"library": "./index.js",
|
|
7
|
-
"
|
|
8
|
-
"public/
|
|
7
|
+
"scss": [
|
|
8
|
+
"public/scss/default.scss"
|
|
9
9
|
],
|
|
10
10
|
"scripts": [
|
|
11
11
|
"public/js/client.js"
|
|
@@ -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
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
@mixin markdown-highlight {
|
|
2
2
|
margin-top: 1rem;
|
|
3
3
|
color: inherit;
|
|
4
4
|
background-color: inherit;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
// Backwards compatibility with themes without components
|
|
36
36
|
.post-content pre, .topic-text pre, .composer .preview pre {
|
|
37
|
-
|
|
37
|
+
@include markdown-highlight;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.markdown-highlight .hljs {
|
|
@@ -2,64 +2,64 @@
|
|
|
2
2
|
<div class="col-sm-2 col-xs-12 settings-header">General</div>
|
|
3
3
|
<div class="col-sm-10 col-xs-12">
|
|
4
4
|
<form class="form markdown-settings">
|
|
5
|
-
<div class="
|
|
6
|
-
<div class="
|
|
7
|
-
<div class="
|
|
5
|
+
<div class="card">
|
|
6
|
+
<div class="card-header">Markdown</div>
|
|
7
|
+
<div class="card-body">
|
|
8
8
|
<div class="row">
|
|
9
9
|
<div class="col-lg-6">
|
|
10
|
-
<div class="form-
|
|
11
|
-
<
|
|
12
|
-
|
|
10
|
+
<div class="mb-3 form-check">
|
|
11
|
+
<input type="checkbox" class="form-check-input" name="xhtmlOut" id="xhtmlOut" />
|
|
12
|
+
<label class="form-check-label" for="xhtmlOut">
|
|
13
13
|
Use '/' to close single tags (<code><br /></code>)
|
|
14
14
|
</label>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="form-
|
|
17
|
-
<
|
|
18
|
-
|
|
16
|
+
<div class="mb-3 form-check">
|
|
17
|
+
<input type="checkbox" class="form-check-input" name="breaks" id="breaks" />
|
|
18
|
+
<label class="form-check-label" for="breaks">
|
|
19
19
|
Treat newlines as single line breaks
|
|
20
20
|
</label>
|
|
21
21
|
</div>
|
|
22
|
-
<div class="form-
|
|
23
|
-
<
|
|
24
|
-
|
|
22
|
+
<div class="mb-3 form-check">
|
|
23
|
+
<input type="checkbox" class="form-check-input" name="typographer" id="typographer" />
|
|
24
|
+
<label class="form-check-label" for="typographer">
|
|
25
25
|
Enable smartypants and other sweet transforms (e.g. <code>(c)</code> → <code>©</code>)
|
|
26
26
|
</label>
|
|
27
27
|
</div>
|
|
28
|
-
<div class="form-
|
|
29
|
-
<
|
|
30
|
-
|
|
28
|
+
<div class="mb-3 form-check">
|
|
29
|
+
<input type="checkbox" class="form-check-input" name="multimdTables" id="multimdTables" />
|
|
30
|
+
<label class="form-check-label" for="multimdTables">
|
|
31
31
|
Allow advanced table syntax
|
|
32
32
|
</label>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
35
|
<div class="col-lg-6">
|
|
36
|
-
<div class="form-
|
|
37
|
-
<
|
|
38
|
-
|
|
36
|
+
<div class="mb-3 form-check">
|
|
37
|
+
<input type="checkbox" class="form-check-input" name="linkify" id="linkify" />
|
|
38
|
+
<label class="form-check-label" for="linkify">
|
|
39
39
|
Autoconvert url-like texts to links
|
|
40
40
|
</label>
|
|
41
41
|
</div>
|
|
42
|
-
<div class="form-
|
|
43
|
-
<
|
|
44
|
-
|
|
42
|
+
<div class="mb-3 form-check">
|
|
43
|
+
<input type="checkbox" class="form-check-input" name="externalBlank" id="externalBlank" />
|
|
44
|
+
<label class="form-check-label" for="externalBlank">
|
|
45
45
|
Open external links in a new tab/window
|
|
46
46
|
</label>
|
|
47
47
|
</div>
|
|
48
|
-
<div class="form-
|
|
49
|
-
<
|
|
50
|
-
|
|
48
|
+
<div class="mb-3 form-check">
|
|
49
|
+
<input type="checkbox" class="form-check-input" name="nofollow" id="nofollow" />
|
|
50
|
+
<label class="form-check-label" for="nofollow">
|
|
51
51
|
Tell web crawlers that external links are not to be followed
|
|
52
52
|
</label>
|
|
53
53
|
</div>
|
|
54
|
-
<div class="form-
|
|
55
|
-
<
|
|
56
|
-
|
|
54
|
+
<div class="mb-3 form-check">
|
|
55
|
+
<input type="checkbox" class="form-check-input" name="allowRTLO" id="allowRTLO" />
|
|
56
|
+
<label class="form-check-label" for="allowRTLO">
|
|
57
57
|
Allow RTL override unicode in link content
|
|
58
58
|
</label>
|
|
59
59
|
</div>
|
|
60
|
-
<div class="form-
|
|
61
|
-
<
|
|
62
|
-
|
|
60
|
+
<div class="mb-3 form-check">
|
|
61
|
+
<input type="checkbox" class="form-check-input" name="checkboxes" id="checkboxes" />
|
|
62
|
+
<label class="form-check-label" for="checkboxes">
|
|
63
63
|
Interpret <code>[ ]</code> and <code>[x]</code> as checkboxes
|
|
64
64
|
</label>
|
|
65
65
|
</div>
|
|
@@ -69,18 +69,18 @@
|
|
|
69
69
|
</div>
|
|
70
70
|
<div class="row">
|
|
71
71
|
<div class="col-sm-6">
|
|
72
|
-
<div class="
|
|
73
|
-
<div class="
|
|
74
|
-
<div class="
|
|
75
|
-
<div class="form-
|
|
76
|
-
<
|
|
77
|
-
|
|
72
|
+
<div class="card">
|
|
73
|
+
<div class="card-header">Code Formatting</div>
|
|
74
|
+
<div class="card-body">
|
|
75
|
+
<div class="mb-3 form-check">
|
|
76
|
+
<input type="checkbox" class="form-check-input" name="highlight" id="highlight" />
|
|
77
|
+
<label class="form-check-label" for="highlight">
|
|
78
78
|
Automatically detect and highlight code blocks
|
|
79
79
|
</label>
|
|
80
80
|
</div>
|
|
81
81
|
|
|
82
|
-
<div class="
|
|
83
|
-
<label for="highlightTheme">Use this theme for highlighted code blocks</label>
|
|
82
|
+
<div class="mb-3">
|
|
83
|
+
<label class="form-label" for="highlightTheme">Use this theme for highlighted code blocks</label>
|
|
84
84
|
<select class="form-control" name="highlightTheme" id="highlightTheme">
|
|
85
85
|
{{{ each themes }}}
|
|
86
86
|
<option value="{@value}">{@value}</option>
|
|
@@ -88,23 +88,23 @@
|
|
|
88
88
|
</select>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
|
-
<div class="
|
|
92
|
-
<label for="defaultHighlightLanguage">
|
|
91
|
+
<div class="mb-3">
|
|
92
|
+
<label class="form-label" for="defaultHighlightLanguage">
|
|
93
93
|
Default language for code blocks with no language defined
|
|
94
94
|
</label>
|
|
95
95
|
<input class="form-control" placeholder="e.g. js" type="text" name="defaultHighlightLanguage" id="defaultHighlightLanguage" />
|
|
96
|
-
<p class="
|
|
96
|
+
<p class="form-text">Leave blank to use auto-language detection</p>
|
|
97
97
|
</div>
|
|
98
98
|
|
|
99
|
-
<div class="
|
|
100
|
-
<label for="langPrefix">
|
|
99
|
+
<div class="mb-3">
|
|
100
|
+
<label class="form-label" for="langPrefix">
|
|
101
101
|
Prefix for <code>code</code> blocks
|
|
102
102
|
</label>
|
|
103
103
|
<input class="form-control" placeholder="language-" type="text" name="langPrefix" id="langPrefix" />
|
|
104
104
|
</div>
|
|
105
105
|
|
|
106
|
-
<div class="
|
|
107
|
-
<label for="highlightLinesLanguageList">
|
|
106
|
+
<div class="mb-3">
|
|
107
|
+
<label class="form-label" for="highlightLinesLanguageList">
|
|
108
108
|
Enable line numbers for the following languages
|
|
109
109
|
</label>
|
|
110
110
|
<select class="form-control" multiple="true" name="highlightLinesLanguageList" id="highlightLinesLanguageList" size="20">
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
<option value="sql">SQL</option>
|
|
133
133
|
<option value="shell,console">Shell</option>
|
|
134
134
|
</select>
|
|
135
|
-
<p class="
|
|
135
|
+
<p class="form-text">
|
|
136
136
|
You can use <code>ctrl</code> and <code>shift</code> to select/deselect multiple
|
|
137
137
|
items and select/deselect items in ranges.
|
|
138
138
|
</p>
|
|
@@ -141,41 +141,41 @@
|
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
143
143
|
<div class="col-sm-6">
|
|
144
|
-
<div class="
|
|
145
|
-
<div class="
|
|
146
|
-
<div class="
|
|
147
|
-
<div class="
|
|
148
|
-
<
|
|
149
|
-
|
|
144
|
+
<div class="card">
|
|
145
|
+
<div class="card-header">Images</div>
|
|
146
|
+
<div class="card-body">
|
|
147
|
+
<div class="mb-3 form-check">
|
|
148
|
+
<input type="checkbox" class="form-check-input" name="probe" id="probe" />
|
|
149
|
+
<label class="form-check-label" for="probe">
|
|
150
150
|
Append image sizes for externally linked images
|
|
151
151
|
</label>
|
|
152
152
|
</div>
|
|
153
|
-
<div class="
|
|
154
|
-
<label for="probeCacheSize">Cache size (number of images)</label>
|
|
153
|
+
<div class="mb-3">
|
|
154
|
+
<label class="form-label" for="probeCacheSize">Cache size (number of images)</label>
|
|
155
155
|
<input class="form-control" type="number" id="probeCacheSize" name="probeCacheSize" placeholder="256 (Default)" />
|
|
156
|
-
<p class="
|
|
156
|
+
<p class="form-text">
|
|
157
157
|
Markdown automatically saves image sizes so as to not make too many unnecessary calls. It remembers this value for 24 hours, to a maximum number of images as defined here. Increase this number if your forum posts contain links to many external images.
|
|
158
158
|
</p>
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
161
|
</div>
|
|
162
|
-
<div class="
|
|
163
|
-
<div class="
|
|
164
|
-
<div class="
|
|
165
|
-
<div class="form-
|
|
166
|
-
<
|
|
167
|
-
|
|
162
|
+
<div class="card">
|
|
163
|
+
<div class="card-header bg-danger text-light">Danger Zone</div>
|
|
164
|
+
<div class="card-body">
|
|
165
|
+
<div class="mb-3 form-check">
|
|
166
|
+
<input type="checkbox" class="form-check-input" name="html" id="html" />
|
|
167
|
+
<label class="form-check-label" for="html">
|
|
168
168
|
Allow HTML
|
|
169
169
|
</label>
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
</
|
|
170
|
+
</div>
|
|
171
|
+
<div class="alert alert-warning">
|
|
172
|
+
<strong><i class="icon-warning-sign"></i> Careful!</strong>
|
|
173
|
+
<p>
|
|
174
|
+
Automatic HTML sanitization is an important part of ensuring that
|
|
175
|
+
your users do not run arbitrary javascript or alter parts of the
|
|
176
|
+
page that were not meant to be altered. If this option is checked,
|
|
177
|
+
beware the consequences!
|
|
178
|
+
</p>
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
181
|
</div>
|