book-source 0.3.2 → 0.3.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.
|
@@ -204,7 +204,7 @@ StructuredDocument.prototype.autoTitle = function() {
|
|
|
204
204
|
|
|
205
205
|
|
|
206
206
|
|
|
207
|
-
StructuredDocument.prototype.getText = function( parts
|
|
207
|
+
StructuredDocument.prototype.getText = function( parts = this.parts ) {
|
|
208
208
|
var str = '' ;
|
|
209
209
|
|
|
210
210
|
for ( let part of parts ) {
|
|
@@ -1100,6 +1100,7 @@ function parseTableRowSeparator( str , ctx , thick = false ) {
|
|
|
1100
1100
|
|
|
1101
1101
|
if ( str[ currentBar + 1 ] === '-' && str[ currentBar + 2 ] === ' ' && str[ nextBar - 1 ] === '-' && str[ nextBar - 2 ] === ' ' ) {
|
|
1102
1102
|
// This is a rowSpan
|
|
1103
|
+
table.hasRowSpan = true ;
|
|
1103
1104
|
ctx.rowSpanTables.add( table ) ;
|
|
1104
1105
|
if ( ! tableRow.continueRowSpan ) { tableRow.continueRowSpan = [] ; }
|
|
1105
1106
|
|
package/lib/documentParts.js
CHANGED
|
@@ -345,6 +345,7 @@ function Table() {
|
|
|
345
345
|
this.multilineRowMode = false ;
|
|
346
346
|
this.hasHeadSeparator = false ;
|
|
347
347
|
this.hasRowSeparator = false ;
|
|
348
|
+
this.hasRowSpan = false ; // Useful to disable background colors based on odd/even rows
|
|
348
349
|
BlockPart.call( this ) ;
|
|
349
350
|
}
|
|
350
351
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "book-source",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "A lightweight markup language, inspired by Markdown.",
|
|
5
5
|
"main": "lib/book-source.js",
|
|
6
6
|
"directories": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"array-kit": "^0.2.6",
|
|
11
11
|
"palette-shade": "^0.1.3",
|
|
12
|
-
"string-kit": "^0.18.
|
|
12
|
+
"string-kit": "^0.18.2"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"test": "tea-time -R dot"
|