summaryrefslogtreecommitdiffhomepage
path: root/parser/pageparser/pageparser.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/pageparser/pageparser.go')
-rw-r--r--parser/pageparser/pageparser.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/parser/pageparser/pageparser.go b/parser/pageparser/pageparser.go
index 754397121..606a246aa 100644
--- a/parser/pageparser/pageparser.go
+++ b/parser/pageparser/pageparser.go
@@ -41,10 +41,13 @@ func Parse(r io.Reader) (Result, error) {
if err != nil {
return nil, errors.Wrap(err, "failed to read page content")
}
+ return parseBytes(b)
+}
+
+func parseBytes(b []byte) (Result, error) {
lexer := newPageLexer(b, 0, lexIntroSection)
lexer.run()
return lexer, nil
-
}
func parseMainSection(input []byte, from int) Result {