@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 +5 -0
- package/css/liulian.css +2 -5
- package/lib/text/liulian.js +1 -1
- package/package.json +1 -1
package/ChangeLog.md
CHANGED
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;
|
package/lib/text/liulian.js
CHANGED
|
@@ -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;
|