nodebb-plugin-markdown 13.2.3 → 13.2.4
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/index.js +0 -3
- package/package.json +1 -1
- package/public/js/markdown.js +1 -1
package/index.js
CHANGED
|
@@ -64,9 +64,6 @@ const Markdown = {
|
|
|
64
64
|
rel: 'prefetch stylesheet',
|
|
65
65
|
type: '',
|
|
66
66
|
href: `${nconf.get('relative_path')}/assets/plugins/nodebb-plugin-markdown/styles/${highlightTheme || 'default.css'}`,
|
|
67
|
-
}, {
|
|
68
|
-
rel: 'prefetch',
|
|
69
|
-
href: `${nconf.get('relative_path')}/assets/language/${meta.config.defaultLang || 'en-GB'}/markdown.json?${meta.config['cache-buster']}`,
|
|
70
67
|
});
|
|
71
68
|
|
|
72
69
|
return hookData;
|
package/package.json
CHANGED
package/public/js/markdown.js
CHANGED
|
@@ -51,7 +51,7 @@ export function prepareFormattingTools() {
|
|
|
51
51
|
'translator',
|
|
52
52
|
], function (formatting, controls, translator) {
|
|
53
53
|
if (formatting && controls) {
|
|
54
|
-
translator.getTranslations(window.config.userLang
|
|
54
|
+
translator.getTranslations(window.config.userLang, 'markdown', function (strings) {
|
|
55
55
|
// used for h1,h2...h6
|
|
56
56
|
function formatHeading(heading, textarea, selectionStart, selectionEnd) {
|
|
57
57
|
if (selectionStart === selectionEnd) {
|