@kobalab/liulian 1.1.1 → 1.1.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/ChangeLog.md CHANGED
@@ -1,3 +1,15 @@
1
+ ### v1.1.4 / 2022-09-11
2
+
3
+ - size モジュールをブロックでも使えるよう修正
4
+
5
+ ### v1.1.3 / 2022-07-18
6
+
7
+ - 脆弱性警告に対処(passport 0.4.1 → 0.6.0)
8
+
9
+ ### v1.1.2 / 2022-06-29
10
+
11
+ - 脆弱性警告に対処(multer 1.4.2 → 1.4.5-lts.1)
12
+
1
13
  ### v1.1.1 / 2022-04-21
2
14
 
3
15
  - contents モジュールに目次の範囲と表示方法を変更する機能を追加
@@ -30,7 +30,7 @@ module.exports = class Core {
30
30
  this._req = parser._r._req;
31
31
  this._inline = ['img','color','size','br','clear','class','lang'];
32
32
  this._block = ['title','contents','nav','footnote','include','img',
33
- 'clear','class','style','icon','lang','redirect',
33
+ 'size','clear','class','style','icon','lang','redirect',
34
34
  'script'];
35
35
  this._np = ['style','script'];
36
36
  }
@@ -189,7 +189,11 @@ module.exports = class Core {
189
189
  }
190
190
 
191
191
  size(type, param, value) {
192
- return `<span style="font-size:${cdata(param)}">${value}</span>`;
192
+ if (type == '#')
193
+ return `<div style="font-size:${cdata(param)}">\n`
194
+ + `${value}</div>\n\n`;
195
+ else
196
+ return `<span style="font-size:${cdata(param)}">${value}</span>`;
193
197
  }
194
198
 
195
199
  br(type, param) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kobalab/liulian",
3
- "version": "1.1.1",
3
+ "version": "1.1.4",
4
4
  "description": "Node.jsで動作するWebサイト作成ツール",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,8 +37,8 @@
37
37
  "markdown-it": "^12.3.2",
38
38
  "markdown-it-footnote": "^3.0.3",
39
39
  "mime": "^2.4.6",
40
- "multer": "^1.4.2",
41
- "passport": "^0.4.1",
40
+ "multer": "^1.4.5-lts.1",
41
+ "passport": "^0.6.0",
42
42
  "passport-local": "^1.0.0",
43
43
  "session-file-store": "^1.4.0",
44
44
  "yargs": "^15.4.1"