@kobalab/liulian 0.7.6 → 0.7.7

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,8 @@
1
+ ### v0.7.7 / 2021-12-03
2
+
3
+ - | のみの行があると異常終了するバグを修正
4
+ - スマートフォンサイズ以外でも表があふれた場合は横スクロールするように修正
5
+
1
6
  ### v0.7.6 / 2021-11-11
2
7
 
3
8
  - 表のセルにclassが指定できるようにした
package/css/liulian.css CHANGED
@@ -74,11 +74,6 @@ h6 {
74
74
  margin-left: 0;
75
75
  padding-left: 1.5em;
76
76
  }
77
-
78
- table {
79
- display: block;
80
- overflow: auto;
81
- }
82
77
  }
83
78
 
84
79
  hr {
@@ -113,6 +108,8 @@ blockquote {
113
108
 
114
109
  table {
115
110
  border-collapse: collapse;
111
+ display: block;
112
+ overflow: auto;
116
113
  }
117
114
  th, td {
118
115
  border: solid 1px #9c9;
@@ -229,7 +229,7 @@ class LiuLian {
229
229
  let cell = [];
230
230
  for (;;) {
231
231
  let line = this.readline().replace(/\|$/,'');
232
- let cols = line.match(/\|(?:\[\[.*?\]\]|[^\|])*/g)
232
+ let cols = line.match(/\|(?:\[\[.*?\]\]|[^\|])*/g) || [];
233
233
  cell.push(cols.map(c=>c.replace(/^\|/,'')));
234
234
  line = this.nextline();
235
235
  if (! line || ! line.match(/^\|/)) break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kobalab/liulian",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Node.jsで動作するWebサイト作成ツール",
5
5
  "publishConfig": {
6
6
  "access": "public"