|
@@ -1,5 +1,6 @@
|
|
const Saxophone = require('saxophone');
|
|
const Saxophone = require('saxophone');
|
|
const file = require('../../file');
|
|
const file = require('../../file');
|
|
|
|
+const skip = require('./skip');
|
|
|
|
|
|
const TAGS = [
|
|
const TAGS = [
|
|
'phdthesis',
|
|
'phdthesis',
|
|
@@ -48,7 +49,7 @@ const parser = class Parser {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.callback = callback;
|
|
this.callback = callback;
|
|
- file.fs.createReadStream(this.source, {start: 77}).pipe(this.sax);
|
|
|
|
|
|
+ file.fs.createReadStream(this.source, {start: skip.begin(this.source, '<!DOCTYPE')}).pipe(this.sax);
|
|
}
|
|
}
|
|
|
|
|
|
from(source) {
|
|
from(source) {
|