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.
@@ -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
+ }
@@ -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>&lt;br /&gt;</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> &rarr; <code>&copy;</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
- <div class="form-group">
82
- <label for="highlightTheme">Use this theme for highlighted code blocks</label>
83
- <select class="form-control" name="highlightTheme" id="highlightTheme">
84
- <!-- BEGIN themes -->
85
- <option value="{themes.name}">{themes.name}</option>
86
- <!-- END themes -->
87
- </select>
88
- </div>
89
- <div class="form-group">
90
- <label for="langPrefix">
91
- Prefix for <code>code</code> blocks
92
- </label>
93
- <input class="form-control" placeholder="language-" type="text" name="langPrefix" id="langPrefix" />
94
- </div>
95
-
96
- <div class="form-group">
97
- <label for="highlightLinesLanguageList">
98
- Enable line numbers for the following languages
99
- </label>
100
- <select class="form-control" multiple="true" name="highlightLinesLanguageList" id="highlightLinesLanguageList" size="20">
101
- <option value="apache,apacheconf">Apache</option>
102
- <option value="bash,sh,zsh">Bash</option>
103
- <option value="cs,csharp">C#</option>
104
- <option value="cpp,c,cc,h,c++,h++,hpp">C++</option>
105
- <option value="css">CSS</option>
106
- <option value="coffeescript,coffee,cson,iced">CoffeeScript</option>
107
- <option value="diff,patch">Diff</option>
108
- <option value="xml,html,xhtml,rss,atom,xjb,xsd,xsl,plist">HTML</option>
109
- <option value="http,https">HTTP</option>
110
- <option value="ini,toml">Ini</option>
111
- <option value="json">JSON</option>
112
- <option value="java">Java</option>
113
- <option value="javascript,js,jsx">Javascript</option>
114
- <option value="makefile,mk,mak">Makefile</option>
115
- <option value="markdown,md,mkdown,mkd">Markdown</option>
116
- <option value="nginx,nginxconf">Nginx</option>
117
- <option value="objectivec,objc,obj-c">Objective C</option>
118
- <option value="php,php3,php4,php5,php6">PHP</option>
119
- <option value="perl,pl,pm">Perl</option>
120
- <option value="python,py,gyp">Python</option>
121
- <option value="ruby,rb,gemspec,podspec,thor,irb">Ruby</option>
122
- <option value="sql">SQL</option>
123
- <option value="shell,console">Shell</option>
124
- </select>
125
- <p class="help-block">
126
- You can use <code>ctrl</code> and <code>shift</code> to select/deselect multiple
127
- items and select/deselect items in ranges.
128
- </p>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- <div class="col-sm-6">
134
- <div class="panel panel-default">
135
- <div class="panel-heading">Images</div>
136
- <div class="panel-body">
137
- <div class="checkbox">
138
- <label for="probe">
139
- <input type="checkbox" name="probe" id="probe" />
140
- Append image sizes for externally linked images
141
- </label>
142
- </div>
143
- <div class="form-group">
144
- <label for="probeCacheSize">Cache size (number of images)</label>
145
- <input class="form-control" type="number" id="probeCacheSize" name="probeCacheSize" placeholder="256 (Default)" />
146
- <p class="help-block">
147
- 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.
148
- </p>
149
- </div>
150
- </div>
151
- </div>
152
- <div class="panel panel-danger">
153
- <div class="panel-heading">Danger Zone</div>
154
- <div class="panel-body">
155
- <div class="form-group">
156
- <label for="html">
157
- <input type="checkbox" name="html" id="html" />
158
- Allow HTML
159
- </label>
160
- <div class="alert alert-warning">
161
- <strong><i class="icon-warning-sign"></i> Careful!</strong>
162
- <p>
163
- Automatic HTML sanitization is an important part of ensuring that
164
- your users do not run arbitrary javascript or alter parts of the
165
- page that were not meant to be altered. If this option is checked,
166
- beware the consequences!
167
- </p>
168
- </div>
169
- </div>
170
- </div>
171
- </div>
172
- </div>
173
- </div>
174
- </form>
175
- </div>
176
- </div>
177
-
178
- <button id="save" class="floating-button mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored">
179
- <i class="material-icons">save</i>
180
- </button>
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>&lt;br /&gt;</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> &rarr; <code>&copy;</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>
package/renovate.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": [
3
+ "config:base"
4
+ ]
5
+ }