@kobalab/liulian 1.1.13 → 1.1.15
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/ChangeLog.md +25 -0
- package/css/liulian.css +1 -1
- package/lib/text/liulian.js +2 -4
- package/lib/text/markdown.js +3 -5
- package/package.json +10 -10
package/ChangeLog.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
### v1.1.15 / 2026-03-19
|
|
2
|
+
|
|
3
|
+
- パッケージを最新化
|
|
4
|
+
- highlight.js 10.7.3 → 11.11.1
|
|
5
|
+
- シンタックスハイライトにおいて「不正な言語」を検出する方法を修正
|
|
6
|
+
- highlight.js の古い関数呼び出しの方法を現在の方法に修正
|
|
7
|
+
- markdown-it 12.3.2 → 14.1.1
|
|
8
|
+
- markdown-it-footnote 3.0.3 → 4.0.0
|
|
9
|
+
|
|
10
|
+
### v1.1.14 / 2026-03-14
|
|
11
|
+
|
|
12
|
+
- 編集画面の高さを調整
|
|
13
|
+
- パッケージを最新化
|
|
14
|
+
- express 4.21.2 → 4.22.1
|
|
15
|
+
- express-session 1.18.2 → 1.19.0
|
|
16
|
+
- multer 1.4.5-lts.1 → 2.1.1
|
|
17
|
+
- passport 0.6.0 → 0.7.0
|
|
18
|
+
- mocha 11.7.1 → 11.7.5
|
|
19
|
+
- nyc 15.1.0 → 18.0.0
|
|
20
|
+
- 脆弱性警告に対処
|
|
21
|
+
- glob 10.4.5 → 10.5.0
|
|
22
|
+
- js-yaml 3.13.1, 4.1.0 → 3.14.2, 4.1.1
|
|
23
|
+
- minimatch 9.0.5 → 9.0.9
|
|
24
|
+
- qs 6.13.0 → 6.14.2
|
|
25
|
+
|
|
1
26
|
### v1.1.13 / 2025-07-27
|
|
2
27
|
|
|
3
28
|
- モジュール paiga の画像を変更
|
package/css/liulian.css
CHANGED
package/lib/text/liulian.js
CHANGED
|
@@ -319,15 +319,14 @@ class LiuLian {
|
|
|
319
319
|
blockPre() {
|
|
320
320
|
const lang = this.readline().match(/^>\|(.*)$/)[1];
|
|
321
321
|
const code = this.npBlock('|<').replace(/\n$/,'');
|
|
322
|
-
const error = console.error; console.error = ()=>{};
|
|
323
322
|
let html = '<pre>';
|
|
324
323
|
if (lang) {
|
|
325
|
-
|
|
324
|
+
if (hljs.getLanguage(lang)) {
|
|
326
325
|
html += '<code>'
|
|
327
326
|
+ hljs.highlight(code, { language: lang }).value
|
|
328
327
|
+ '</code>'
|
|
329
328
|
}
|
|
330
|
-
|
|
329
|
+
else {
|
|
331
330
|
html += '<code>'
|
|
332
331
|
+ hljs.highlightAuto(code).value
|
|
333
332
|
+ '</code>'
|
|
@@ -336,7 +335,6 @@ class LiuLian {
|
|
|
336
335
|
else {
|
|
337
336
|
html += cdata(code);
|
|
338
337
|
}
|
|
339
|
-
console.error = error;
|
|
340
338
|
return html + '</pre>\n\n';
|
|
341
339
|
}
|
|
342
340
|
|
package/lib/text/markdown.js
CHANGED
|
@@ -9,17 +9,15 @@ module.exports = require('markdown-it')({
|
|
|
9
9
|
html: true,
|
|
10
10
|
linkify: true,
|
|
11
11
|
highlight: function(str, lang) {
|
|
12
|
-
const error = console.error; console.error = ()=>{};
|
|
13
12
|
let html = '';
|
|
14
13
|
if (lang) {
|
|
15
|
-
|
|
16
|
-
html = hljs.highlight(
|
|
14
|
+
if (hljs.getLanguage(lang)) {
|
|
15
|
+
html = hljs.highlight(str, { language: lang }).value;
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
else {
|
|
19
18
|
html = hljs.highlightAuto(str).value;
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
|
-
console.error = error;
|
|
23
21
|
return html;
|
|
24
22
|
}
|
|
25
23
|
}).use(require('markdown-it-footnote'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kobalab/liulian",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "Node.jsで動作するWebサイト作成ツール",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://kobalab.net/liulian/",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"mocha": "^11.7.
|
|
31
|
-
"nyc": "^
|
|
30
|
+
"mocha": "^11.7.5",
|
|
31
|
+
"nyc": "^18.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"express": "^4.
|
|
35
|
-
"express-session": "^1.
|
|
36
|
-
"highlight.js": "^
|
|
37
|
-
"markdown-it": "^
|
|
38
|
-
"markdown-it-footnote": "^
|
|
34
|
+
"express": "^4.22.1",
|
|
35
|
+
"express-session": "^1.19.0",
|
|
36
|
+
"highlight.js": "^11.11.1",
|
|
37
|
+
"markdown-it": "^14.1.1",
|
|
38
|
+
"markdown-it-footnote": "^4.0.0",
|
|
39
39
|
"mime": "^2.6.0",
|
|
40
|
-
"multer": "^1.
|
|
41
|
-
"passport": "^0.
|
|
40
|
+
"multer": "^2.1.1",
|
|
41
|
+
"passport": "^0.7.0",
|
|
42
42
|
"passport-local": "^1.0.0",
|
|
43
43
|
"session-file-store": "^1.5.0",
|
|
44
44
|
"yargs": "^17.7.2"
|