book-source 0.3.13 → 0.3.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/lib/book-source.js +1 -0
- package/lib/documentParts.js +4 -0
- package/package.json +1 -1
package/lib/book-source.js
CHANGED
|
@@ -35,6 +35,7 @@ bookSource.StructuredDocument = require( './StructuredDocument.js' ) ;
|
|
|
35
35
|
bookSource.Style = require( './Style.js' ) ;
|
|
36
36
|
bookSource.Theme = require( './Theme.js' ) ;
|
|
37
37
|
bookSource.textPostFilters = require( './textPostFilters.js' ) ;
|
|
38
|
+
bookSource.postProcesses = require( './postProcesses.js' ) ;
|
|
38
39
|
|
|
39
40
|
Object.assign( bookSource , require( './documentParts.js' ) ) ;
|
|
40
41
|
|
package/lib/documentParts.js
CHANGED
|
@@ -371,9 +371,13 @@ documentParts.Anchor = Anchor ;
|
|
|
371
371
|
|
|
372
372
|
|
|
373
373
|
|
|
374
|
+
// All special types that could be rendered (have graphical representation)
|
|
375
|
+
const RENDERED_SPECIAL_TYPES = new Set( [ 'summary' ] ) ;
|
|
376
|
+
|
|
374
377
|
function Special( special ) {
|
|
375
378
|
this.type = 'special' ;
|
|
376
379
|
this.special = special ;
|
|
380
|
+
this.rendered = RENDERED_SPECIAL_TYPES.has( special ) ;
|
|
377
381
|
BlockContainerPart.call( this ) ;
|
|
378
382
|
}
|
|
379
383
|
|