mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 11:03:39 +00:00
26 lines
423 B
JavaScript
26 lines
423 B
JavaScript
var Promise = require('../../utils/promise');
|
|
|
|
var Modifier = require('../');
|
|
|
|
|
|
function JSONGenerator(book) {
|
|
this.book = book;
|
|
}
|
|
|
|
|
|
JSONGenerator.prototype.onPage = function(page) {
|
|
return Modifier.HTMLTransformations(page, [
|
|
Modifier.svgToImg(),
|
|
Modifier.svgToPng()
|
|
])
|
|
.then(function() {
|
|
|
|
|
|
});
|
|
};
|
|
|
|
JSONGenerator.prototype.onAsset = function(file) {
|
|
|
|
};
|
|
|
|
module.exports = JSONGenerator; |