nodebb-plugin-markdown 8.14.3 → 9.0.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/.eslintignore +1 -1
- package/.eslintrc +128 -128
- package/.jshintrc +85 -85
- package/README.md +9 -9
- package/commitlint.config.js +26 -26
- package/index.js +482 -476
- package/lib/controllers.js +32 -32
- package/package.json +51 -50
- package/plugin.json +40 -41
- package/public/js/admin.js +76 -76
- package/public/js/client.js +251 -246
- package/public/js/highlightjs-line-numbers.js +372 -189
- 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/ru/markdown.json +10 -10
- package/public/languages/tr/markdown.json +11 -11
- package/public/languages/zh-CN/markdown.json +11 -11
- package/public/less/default.less +58 -58
- package/public/templates/admin/plugins/markdown.tpl +190 -180
- package/renovate.json +5 -0
- package/websockets.js +37 -37
- package/public/js/highlight.js +0 -2
|
@@ -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": "Жирный текст",
|
|
3
|
-
"italic": "Прописной шрифт",
|
|
4
|
-
"list_item": "Пункт списка",
|
|
5
|
-
"strikethrough_text": "Зачеркнутый текст",
|
|
6
|
-
"link_text": "Текст ссылки",
|
|
7
|
-
"link_url": "Адрес ссылки",
|
|
8
|
-
"picture_text": "Описание",
|
|
9
|
-
"picture_url": "URL-адрес изображения",
|
|
10
|
-
"help_text": "Этот форум работает на основе Markdown. Для получения полной документации [перейдите на сайт](http://commonmark.org/help/)"
|
|
1
|
+
{
|
|
2
|
+
"bold": "Жирный текст",
|
|
3
|
+
"italic": "Прописной шрифт",
|
|
4
|
+
"list_item": "Пункт списка",
|
|
5
|
+
"strikethrough_text": "Зачеркнутый текст",
|
|
6
|
+
"link_text": "Текст ссылки",
|
|
7
|
+
"link_url": "Адрес ссылки",
|
|
8
|
+
"picture_text": "Описание",
|
|
9
|
+
"picture_url": "URL-адрес изображения",
|
|
10
|
+
"help_text": "Этот форум работает на основе Markdown. Для получения полной документации [перейдите на сайт](http://commonmark.org/help/)"
|
|
11
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
|
+
}
|
package/public/less/default.less
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
.markdown-highlight {
|
|
2
|
-
margin-top: 1rem;
|
|
3
|
-
color: inherit;
|
|
4
|
-
background-color: inherit;
|
|
5
|
-
border: none;
|
|
6
|
-
|
|
7
|
-
code[data-lines="1"] {
|
|
8
|
-
white-space: normal !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.hljs-ln-line {
|
|
12
|
-
white-space: pre;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.hljs-ln-numbers {
|
|
16
|
-
-webkit-touch-callout: none;
|
|
17
|
-
-webkit-user-select: none;
|
|
18
|
-
-khtml-user-select: none;
|
|
19
|
-
-moz-user-select: none;
|
|
20
|
-
-ms-user-select: none;
|
|
21
|
-
user-select: none;
|
|
22
|
-
|
|
23
|
-
text-align: right;
|
|
24
|
-
color: #ccc;
|
|
25
|
-
border-right: 1px solid #CCC;
|
|
26
|
-
vertical-align: top;
|
|
27
|
-
padding-right: 5px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.hljs-ln-code {
|
|
31
|
-
padding-left: 5px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Backwards compatibility with themes without components
|
|
36
|
-
.post-content pre, .topic-text pre, .composer .preview pre {
|
|
37
|
-
.markdown-highlight;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.markdown-highlight .hljs {
|
|
41
|
-
display: inline-block;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[component="post/content"], .composer-container .preview {
|
|
45
|
-
div.plugin-markdown {
|
|
46
|
-
display: flex;
|
|
47
|
-
|
|
48
|
-
input[type="checkbox"] {
|
|
49
|
-
margin-right: 0.5rem;
|
|
50
|
-
position: relative;
|
|
51
|
-
top: 1px;
|
|
52
|
-
|
|
53
|
-
&+label {
|
|
54
|
-
font-weight: unset;
|
|
55
|
-
flex: 1;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
.markdown-highlight {
|
|
2
|
+
margin-top: 1rem;
|
|
3
|
+
color: inherit;
|
|
4
|
+
background-color: inherit;
|
|
5
|
+
border: none;
|
|
6
|
+
|
|
7
|
+
code[data-lines="1"] {
|
|
8
|
+
white-space: normal !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.hljs-ln-line {
|
|
12
|
+
white-space: pre;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.hljs-ln-numbers {
|
|
16
|
+
-webkit-touch-callout: none;
|
|
17
|
+
-webkit-user-select: none;
|
|
18
|
+
-khtml-user-select: none;
|
|
19
|
+
-moz-user-select: none;
|
|
20
|
+
-ms-user-select: none;
|
|
21
|
+
user-select: none;
|
|
22
|
+
|
|
23
|
+
text-align: right;
|
|
24
|
+
color: #ccc;
|
|
25
|
+
border-right: 1px solid #CCC;
|
|
26
|
+
vertical-align: top;
|
|
27
|
+
padding-right: 5px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.hljs-ln-code {
|
|
31
|
+
padding-left: 5px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Backwards compatibility with themes without components
|
|
36
|
+
.post-content pre, .topic-text pre, .composer .preview pre {
|
|
37
|
+
.markdown-highlight;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.markdown-highlight .hljs {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[component="post/content"], .composer-container .preview {
|
|
45
|
+
div.plugin-markdown {
|
|
46
|
+
display: flex;
|
|
47
|
+
|
|
48
|
+
input[type="checkbox"] {
|
|
49
|
+
margin-right: 0.5rem;
|
|
50
|
+
position: relative;
|
|
51
|
+
top: 1px;
|
|
52
|
+
|
|
53
|
+
&+label {
|
|
54
|
+
font-weight: unset;
|
|
55
|
+
flex: 1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
59
|
}
|
|
@@ -1,180 +1,190 @@
|
|
|
1
|
-
<div class="row">
|
|
2
|
-
<div class="col-sm-2 col-xs-12 settings-header">General</div>
|
|
3
|
-
<div class="col-sm-10 col-xs-12">
|
|
4
|
-
<form class="form markdown-settings">
|
|
5
|
-
<div class="panel panel-default">
|
|
6
|
-
<div class="panel-heading">Markdown</div>
|
|
7
|
-
<div class="panel-body">
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div class="col-lg-6">
|
|
10
|
-
<div class="form-group">
|
|
11
|
-
<label for="xhtmlOut">
|
|
12
|
-
<input type="checkbox" name="xhtmlOut" id="xhtmlOut" />
|
|
13
|
-
Use '/' to close single tags (<code><br /></code>)
|
|
14
|
-
</label>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="form-group">
|
|
17
|
-
<label for="breaks">
|
|
18
|
-
<input type="checkbox" name="breaks" id="breaks" />
|
|
19
|
-
Treat newlines as single line breaks
|
|
20
|
-
</label>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-group">
|
|
23
|
-
<label for="typographer">
|
|
24
|
-
<input type="checkbox" name="typographer" id="typographer" />
|
|
25
|
-
Enable smartypants and other sweet transforms (e.g. <code>(c)</code> → <code>©</code>)
|
|
26
|
-
</label>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="form-group">
|
|
29
|
-
<label for="multimdTables">
|
|
30
|
-
<input type="checkbox" name="multimdTables" id="multimdTables" />
|
|
31
|
-
Allow advanced table syntax
|
|
32
|
-
</label>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="col-lg-6">
|
|
36
|
-
<div class="form-group">
|
|
37
|
-
<label for="linkify">
|
|
38
|
-
<input type="checkbox" name="linkify" id="linkify" />
|
|
39
|
-
Autoconvert url-like texts to links
|
|
40
|
-
</label>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="form-group">
|
|
43
|
-
<label for="externalBlank">
|
|
44
|
-
<input type="checkbox" name="externalBlank" id="externalBlank" />
|
|
45
|
-
Open external links in a new tab/window
|
|
46
|
-
</label>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="form-group">
|
|
49
|
-
<label for="nofollow">
|
|
50
|
-
<input type="checkbox" name="nofollow" id="nofollow" />
|
|
51
|
-
Tell web crawlers that external links are not to be followed
|
|
52
|
-
</label>
|
|
53
|
-
</div>
|
|
54
|
-
<div class="form-group">
|
|
55
|
-
<label for="allowRTLO">
|
|
56
|
-
<input type="checkbox" name="allowRTLO" id="allowRTLO" />
|
|
57
|
-
Allow RTL override unicode in link content
|
|
58
|
-
</label>
|
|
59
|
-
</div>
|
|
60
|
-
<div class="form-group">
|
|
61
|
-
<label for="checkboxes">
|
|
62
|
-
<input type="checkbox" name="checkboxes" id="checkboxes" />
|
|
63
|
-
Interpret <code>[ ]</code> and <code>[x]</code> as checkboxes
|
|
64
|
-
</label>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="row">
|
|
71
|
-
<div class="col-sm-6">
|
|
72
|
-
<div class="panel panel-default">
|
|
73
|
-
<div class="panel-heading">Code Formatting</div>
|
|
74
|
-
<div class="panel-body">
|
|
75
|
-
<div class="form-group">
|
|
76
|
-
<label for="highlight">
|
|
77
|
-
<input type="checkbox" name="highlight" id="highlight" />
|
|
78
|
-
Automatically detect and highlight code blocks
|
|
79
|
-
</label>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
<option value="
|
|
112
|
-
<option value="
|
|
113
|
-
<option value="
|
|
114
|
-
<option value="
|
|
115
|
-
<option value="
|
|
116
|
-
<option value="
|
|
117
|
-
<option value="
|
|
118
|
-
<option value="
|
|
119
|
-
<option value="
|
|
120
|
-
<option value="
|
|
121
|
-
<option value="
|
|
122
|
-
<option value="
|
|
123
|
-
<option value="
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</
|
|
1
|
+
<div class="row">
|
|
2
|
+
<div class="col-sm-2 col-xs-12 settings-header">General</div>
|
|
3
|
+
<div class="col-sm-10 col-xs-12">
|
|
4
|
+
<form class="form markdown-settings">
|
|
5
|
+
<div class="panel panel-default">
|
|
6
|
+
<div class="panel-heading">Markdown</div>
|
|
7
|
+
<div class="panel-body">
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-lg-6">
|
|
10
|
+
<div class="form-group">
|
|
11
|
+
<label for="xhtmlOut">
|
|
12
|
+
<input type="checkbox" name="xhtmlOut" id="xhtmlOut" />
|
|
13
|
+
Use '/' to close single tags (<code><br /></code>)
|
|
14
|
+
</label>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group">
|
|
17
|
+
<label for="breaks">
|
|
18
|
+
<input type="checkbox" name="breaks" id="breaks" />
|
|
19
|
+
Treat newlines as single line breaks
|
|
20
|
+
</label>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group">
|
|
23
|
+
<label for="typographer">
|
|
24
|
+
<input type="checkbox" name="typographer" id="typographer" />
|
|
25
|
+
Enable smartypants and other sweet transforms (e.g. <code>(c)</code> → <code>©</code>)
|
|
26
|
+
</label>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="form-group">
|
|
29
|
+
<label for="multimdTables">
|
|
30
|
+
<input type="checkbox" name="multimdTables" id="multimdTables" />
|
|
31
|
+
Allow advanced table syntax
|
|
32
|
+
</label>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-lg-6">
|
|
36
|
+
<div class="form-group">
|
|
37
|
+
<label for="linkify">
|
|
38
|
+
<input type="checkbox" name="linkify" id="linkify" />
|
|
39
|
+
Autoconvert url-like texts to links
|
|
40
|
+
</label>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="form-group">
|
|
43
|
+
<label for="externalBlank">
|
|
44
|
+
<input type="checkbox" name="externalBlank" id="externalBlank" />
|
|
45
|
+
Open external links in a new tab/window
|
|
46
|
+
</label>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="form-group">
|
|
49
|
+
<label for="nofollow">
|
|
50
|
+
<input type="checkbox" name="nofollow" id="nofollow" />
|
|
51
|
+
Tell web crawlers that external links are not to be followed
|
|
52
|
+
</label>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="form-group">
|
|
55
|
+
<label for="allowRTLO">
|
|
56
|
+
<input type="checkbox" name="allowRTLO" id="allowRTLO" />
|
|
57
|
+
Allow RTL override unicode in link content
|
|
58
|
+
</label>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="form-group">
|
|
61
|
+
<label for="checkboxes">
|
|
62
|
+
<input type="checkbox" name="checkboxes" id="checkboxes" />
|
|
63
|
+
Interpret <code>[ ]</code> and <code>[x]</code> as checkboxes
|
|
64
|
+
</label>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="row">
|
|
71
|
+
<div class="col-sm-6">
|
|
72
|
+
<div class="panel panel-default">
|
|
73
|
+
<div class="panel-heading">Code Formatting</div>
|
|
74
|
+
<div class="panel-body">
|
|
75
|
+
<div class="form-group">
|
|
76
|
+
<label for="highlight">
|
|
77
|
+
<input type="checkbox" name="highlight" id="highlight" />
|
|
78
|
+
Automatically detect and highlight code blocks
|
|
79
|
+
</label>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div class="form-group">
|
|
83
|
+
<label for="highlightTheme">Use this theme for highlighted code blocks</label>
|
|
84
|
+
<select class="form-control" name="highlightTheme" id="highlightTheme">
|
|
85
|
+
<!-- BEGIN themes -->
|
|
86
|
+
<option value="{themes.name}">{themes.name}</option>
|
|
87
|
+
<!-- END themes -->
|
|
88
|
+
</select>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div class="form-group">
|
|
92
|
+
<label for="defaultHighlightLanguage">
|
|
93
|
+
Default language for code blocks with no language defined
|
|
94
|
+
</label>
|
|
95
|
+
<input class="form-control" placeholder="e.g. js" type="text" name="defaultHighlightLanguage" id="defaultHighlightLanguage" />
|
|
96
|
+
<p class="help-block">Leave blank to use auto-language detection</p>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div class="form-group">
|
|
100
|
+
<label for="langPrefix">
|
|
101
|
+
Prefix for <code>code</code> blocks
|
|
102
|
+
</label>
|
|
103
|
+
<input class="form-control" placeholder="language-" type="text" name="langPrefix" id="langPrefix" />
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="form-group">
|
|
107
|
+
<label for="highlightLinesLanguageList">
|
|
108
|
+
Enable line numbers for the following languages
|
|
109
|
+
</label>
|
|
110
|
+
<select class="form-control" multiple="true" name="highlightLinesLanguageList" id="highlightLinesLanguageList" size="20">
|
|
111
|
+
<option value="apache,apacheconf">Apache</option>
|
|
112
|
+
<option value="bash,sh,zsh">Bash</option>
|
|
113
|
+
<option value="cs,csharp">C#</option>
|
|
114
|
+
<option value="cpp,c,cc,h,c++,h++,hpp">C++</option>
|
|
115
|
+
<option value="css">CSS</option>
|
|
116
|
+
<option value="coffeescript,coffee,cson,iced">CoffeeScript</option>
|
|
117
|
+
<option value="diff,patch">Diff</option>
|
|
118
|
+
<option value="xml,html,xhtml,rss,atom,xjb,xsd,xsl,plist">HTML</option>
|
|
119
|
+
<option value="http,https">HTTP</option>
|
|
120
|
+
<option value="ini,toml">Ini</option>
|
|
121
|
+
<option value="json">JSON</option>
|
|
122
|
+
<option value="java">Java</option>
|
|
123
|
+
<option value="javascript,js,jsx">Javascript</option>
|
|
124
|
+
<option value="makefile,mk,mak">Makefile</option>
|
|
125
|
+
<option value="markdown,md,mkdown,mkd">Markdown</option>
|
|
126
|
+
<option value="nginx,nginxconf">Nginx</option>
|
|
127
|
+
<option value="objectivec,objc,obj-c">Objective C</option>
|
|
128
|
+
<option value="php,php3,php4,php5,php6">PHP</option>
|
|
129
|
+
<option value="perl,pl,pm">Perl</option>
|
|
130
|
+
<option value="python,py,gyp">Python</option>
|
|
131
|
+
<option value="ruby,rb,gemspec,podspec,thor,irb">Ruby</option>
|
|
132
|
+
<option value="sql">SQL</option>
|
|
133
|
+
<option value="shell,console">Shell</option>
|
|
134
|
+
</select>
|
|
135
|
+
<p class="help-block">
|
|
136
|
+
You can use <code>ctrl</code> and <code>shift</code> to select/deselect multiple
|
|
137
|
+
items and select/deselect items in ranges.
|
|
138
|
+
</p>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="col-sm-6">
|
|
144
|
+
<div class="panel panel-default">
|
|
145
|
+
<div class="panel-heading">Images</div>
|
|
146
|
+
<div class="panel-body">
|
|
147
|
+
<div class="checkbox">
|
|
148
|
+
<label for="probe">
|
|
149
|
+
<input type="checkbox" name="probe" id="probe" />
|
|
150
|
+
Append image sizes for externally linked images
|
|
151
|
+
</label>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="form-group">
|
|
154
|
+
<label for="probeCacheSize">Cache size (number of images)</label>
|
|
155
|
+
<input class="form-control" type="number" id="probeCacheSize" name="probeCacheSize" placeholder="256 (Default)" />
|
|
156
|
+
<p class="help-block">
|
|
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
|
+
</p>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="panel panel-danger">
|
|
163
|
+
<div class="panel-heading">Danger Zone</div>
|
|
164
|
+
<div class="panel-body">
|
|
165
|
+
<div class="form-group">
|
|
166
|
+
<label for="html">
|
|
167
|
+
<input type="checkbox" name="html" id="html" />
|
|
168
|
+
Allow HTML
|
|
169
|
+
</label>
|
|
170
|
+
<div class="alert alert-warning">
|
|
171
|
+
<strong><i class="icon-warning-sign"></i> Careful!</strong>
|
|
172
|
+
<p>
|
|
173
|
+
Automatic HTML sanitization is an important part of ensuring that
|
|
174
|
+
your users do not run arbitrary javascript or alter parts of the
|
|
175
|
+
page that were not meant to be altered. If this option is checked,
|
|
176
|
+
beware the consequences!
|
|
177
|
+
</p>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</form>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<button id="save" class="floating-button mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored">
|
|
189
|
+
<i class="material-icons">save</i>
|
|
190
|
+
</button>
|